Functions, Storage Class Preprocessor Directives, and Arrays and Strings


At the end of this chapter, you should be able to

  • Understand functions and function templates and how C++ handles function execution.

  • Understand the memory mapping adopted by C++ and storage classes.

  • Program C++ with the help of macros and preprocessor directives.

  • Understand the concepts and use array and string data structure.

8.1 Introduction

It is common knowledge that experts who are dedicated to a particular job will perform the job better and faster. We approach architects for making functional and aesthetic housing. Similarly, we hand over control to doctors to take care of our health. In C++ language, we hand over jobs to functions specially ...

Get Object-oriented Programming Using C++ and Java 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.