String in C

Strings are defined as an array of characters or a pointer to a portion of memory containing ASCII characters. A string in C is a sequence of zero or more characters followed by a NULL ‘\0’ character.
In C programming, array of character are called strings. A string is terminated by null character /0. For example “c string tutorial”
Here, “c string tutorial” is a string. When, compiler encounters strings, it appends null character at the end of string.

Leave a Comment