+ 2

What does that mean--> char[100]? Does it mean that I can only write up to 100 characters in the input?

4th Nov 2018, 5:53 PM
MargaritaK
2 Antworten
+ 3
Char variable[100]; This means that you have a array of char if 100 positions (0 to 99). But you only can store a word with 99 letters because strings(array of char) will store '\0' character in last position to mark the end of your string. Yeah by definition strings are a set of characters with \0 in end.
4th Nov 2018, 6:07 PM
Anya
Anya - avatar
+ 1
Thank you very much! This helped me a lot!😀
4th Nov 2018, 6:09 PM
MargaritaK