What is the difference between char* and string? I mean, if char* can also use string's functions or can there be "=".

Thanks all the same.

Member Avatar for iamthwee

>if char* can also use string's functions
No

char* is a pointer which can be made to point to most anything, while I guess you mean std::string c++ class.

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.