How First index ie: a[0] can store a Null or 0?
Null at first BOX of char[100];
Hi @kuldeep.samal16kiit
We can store null at first index of char array. Suppose we have char s[10]=“hello”; then if we use cout<<s; then we will output as hello but if we add ‘\0’ at 0th index by s[0]=’\0’ then if we try to use cout<<s; then nothing will be printed but we can access other characters of s by their index. like s[1] will print e.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.