Does String objects in C++ have null character?

We all know that strings have a null character in the end. The normal declaration is:

char message[];

I am not talking about this. I am talking about string object in C++ which is defined as:

string message;

Now I read in a book today by Jones and Bartlett publishers, and they said,
Object of class strings do not necessarily contain the string terminating character '\0' as in the case with C strings.
I searched it on net (obviously..😛) and couldnt find any convincing answer. Anyone care to throw some light?

Replies

You are reading an archived discussion.

Related Posts

I can complete my BE IT form mumbai university Can any course necessary after BE for getting good job ? I heard about CDAC Can CDAC is best course after...
Hundred Zeros is the re-branded version of zero dollar ebooks and it offers a large collection of free (legally free) to download ebooks. The website uses a responsive web layout,...
I never thought of knowing how the dictionaries define Engineering. So I searched and found this - https://www.thefreedictionary.com/engineering The application of scientific and mathematical principles to practical ends such as...

MOV

is there any vendors in india for b72260b0102k001?? i want 1100v,70kA, 3000J Metal oxide variastor... in india only...
I am finding no constructor while using javap tool for my java class...