If I assign a single chat at first index of char array and then I print whole array then only that single char is not printing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If I assign a single chat at first index of char array and then I print whole array then only that single char is not printing

12th Aug 2017, 4:23 PM
Hacker
Hacker - avatar
3 Answers
+ 1
Arrays start at zero so make sure to iterate over it from arr[0]
12th Aug 2017, 4:25 PM
S C
0
Can you post some code if its still not working?
12th Aug 2017, 4:54 PM
S C
- 1
I assign it in 0 index
12th Aug 2017, 4:29 PM
Hacker
Hacker - avatar