Mention the purpose of a Null Character in C strings.

Mention the purpose of a Null Character in C strings.

If you use a literal string in a program, it is stored in consecutive bytes in memory
and the compiler places the null character at the end.

Leave a Reply

Your email address will not be published. Required fields are marked *