String end of the string


how it is tracking the ending of the string.

End of a character array is ‘\0’.

i dont think i stored ‘\0’ chracter in my array?

There is no need to store that particular character separately. It is automatically in the end.
char arr[10];
for(int i=0; arr[i]!=’\0’; i++)
We display elements of our character array like this

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.