1.0010   What is a string, and why do we put a NULL character at the end of it?

 

A string is a character array and is stored using the ASCII (or EBCDIC) value on 1-byte per character. Because we (generally) do not wish to keep track of the individual elements or how many there are, we place a NULL character (‘\0’) after the last character in the string for easier manipulation.