In many code samples, people usually use \'\\0\' after creating a new char array like this:
\'\\0\'
string s = \"JustAString\"; char* array = new char[
'\0' is the null termination character. If your character array didn't have it and you tried to do a strcpy you would have a buffer overflow. Many functions rely on it to know when they need to stop reading or writing memory.