CHAPTER 8

Strings and Standard Functions

Chapter Outline
8.1  Introduction

Characters are the basic requirement of any program. A program contains statements and statements are built with words that has specific meaning to be understood by the compiler. In C language, a sequence of characters, digits and symbols enclosed within double quotation marks is called a string. The string is always declared as character array and its elements are stored in contiguous memory locations.

In other words, in C, a string is defined ...

Get Programming in C, 3/e, 3rd Edition now with O’Reilly online learning.

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