is there a method in c++ to find the length of string*?
eman 22
0
Junior Poster in Training
Recommended Answers
Jump to PostA string* is a pointer to an object of type string.
A pointer is typically the size of an int or two, but it's dependent on your system. You can find the size of any object with sizeof.
For example,
string* someStringPointer; int size = …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.