null terminated character

http://stackoverflow.com/questions/270708/string-array-with-garbage-character-at-end

u have to end the string with a character. That’s why they are called zero terminated strings.

It is also wise to allocate 1 extra char to hold the ”. (0 without single quotes also works )

Leave a comment