Chapter 18

Working with Strings and Standard Functions


In C language, the group of characters, digits, and symbols enclosed within double quotation marks is called as string. The string is always declared as character arrays. In other words, character arrays are called strings. Strings are normally used to manipulate the text such as words and sentences. Every string is terminated with the ‘ \ 0 ’ (NULL) character. The NULL character is a byte with all bits at logic zero. Hence, its decimal value is zero.

For example

char name [ ] = {‘I’, ‘N’, ‘D’, ‘I’, ‘A’, ‘\0’}; ...

Get Computer Programming and IT now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.