0

What is the relevance of number of characters in an array where we store our input?

https://code.sololearn.com/cnmRI9ljGK67/?ref=app If you could please tell me, what is the function of 10 in "a[10]", written in the given code.

29th Sep 2019, 9:01 AM
Ankit Sharma
Ankit Sharma - avatar
1 Resposta
+ 2
There is no string type in c, so you have to use a char array. The 10 is the total chars u want to ' collect'.
29th Sep 2019, 9:34 AM
rodwynnejones
rodwynnejones - avatar