Strings
Strings
The c-style string is a character array terminated with a null character “\0”.
Hence we can define an array of type char and the dimensions or size of the arrays
and then we can initialize it to a string or array of characters.
Note that it’s the compiler that terminates a string with a null character, so if
we initialize the character array with a string (in the double quote “”) then we
need to leave extra space for the null character while declaring the size of an
array.