Chapter 18

Working with Strings

Chapter Outline
18.1  INTRODUCTION

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 O’Reilly online learning.

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