O'Reilly logo
  • Chris Kang thinks this is interesting:

The compiler appends a null character (’\0’) to every string literal. Thus, the actual size of a string literal is one more than its apparent size

From

Cover of C++ Primer, Fifth Edition

Note

No \0 at the end of a char type.