My issue
Explain what s[10] means
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
Explain what s[10] means
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
C does not have a built in string data-type like some high level languages (eg: java). However, we can work with strings in C by representing it as as array of characters.
In case of s[10], s is the variable name of the array of characters and 10 is its size i.e it can hold upto 10 characters including the null terminator.