0

“\0” on the end of string? What is it?

I see some string in the code with \0. What does it mean?

5th Jan 2018, 8:13 PM
Bee makey
Bee makey - avatar
2 Antworten
+ 1
it's called implicit null character that terminates a string or character array. it's useful for reducing memory usage. For more clarification, string length of "hello" and "hello\O" is same.
5th Jan 2018, 8:36 PM
Rashed Latif
Rashed Latif - avatar
0
Thanks
5th Jan 2018, 9:57 PM
Bee makey
Bee makey - avatar