Chapter 18

Working with Strings

Chapter Outline

A string is nothing but a sequence of characters. Strings can contain small and capital letters, numbers, and symbols. A string is to be treated as an array of characters with terminating \0. Each element of a string occupies a byte in the memory. Every string is terminated by a null character. The last character of such a string is a null (‘\0’) character, and the compiler ...

Get Programming in C++, 2nd Edition now with the O’Reilly learning platform.

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