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 as an array of ...

Get Programming in C, 2nd Edition now with O’Reilly online learning.

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