Should I put '\0' in my C strings?
379
10-Nov-2021
Ravi Vishwakarma
10-Nov-2021'\0' is zero character. In C it is mostly used to indicate the termination of a character string. Of course it is a regular character and may be used as such but this is rarely the case. your string is automatically add the null-terminated(or ends with \0 ) at the end of string, but you add no effect on code.
Mukul Goenka
10-Nov-2021Should I put '\0' in my C strings?