Question: are strings null terminated in c++?
Answer: Neither C or C++ have a default built-in string type. C-strings are simply implemented as a char array which is terminated by a null character (aka 0 ). ... h and in the C++ header cstring . These standard C-string functions require the strings to be terminated with a null character to function correctly.