CHAPTER 8
Strings and Standard Functions
8.2 Declaration and Initialization of String
8.3 Display of Strings with Different Formats
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 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.