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 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.