0

For char a[6] i am giving abcdefgh as input and it contains 7 chars but it is working properly... Is not the 6 no of characters?

13th Jun 2019, 7:15 AM
Akash C R
Akash C R - avatar
2 Respostas
+ 1
can you give the code?
13th Jun 2019, 7:16 AM
Cat Sauce
Cat Sauce - avatar
+ 1
The 6 refers to the index of the character. a[0] would output the first character since indexing starts at 0 a[6] would output "g"
13th Jun 2019, 9:23 AM
Trigger
Trigger - avatar