W orking w ith Strings &
Standard Functions
CHAPTER OUTLINE
8.1
Introduction
8.2
Declaration and Initialization of String
8.3
Display of Strings with Different Formats
8.4 String Standard Functions
8.5 Applications of Strings
Exercises
8.1 INTRODUCTION
In C language the group of characters, digits, and symbols enclosed within quotation marks are
called as string. The string is always declared as character arrays. In other words character arrays
are called Strings. To manipulate text such as words and sentences normally strings are used. Every
string is terminated with 1
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[ ] = { 1I //fN///D/#/I #//A/#/