Chapter 18

Working with Strings and Standard Functions

CHAPTER OUTLINE
18.1 INTRODUCTION

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 O’Reilly online learning.

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