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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.