Chapter 23

Rule Book of C++

Throughout the text, we have defined many terms and the rules governing them. In this small chapter, we are summarizing the import rules for ready reference. When you have a compilation error or your code does not behave as expected, you can refer these rules and check your code.

Keyword Rule
#define symbolic constants Pre-processor directive #define is used for defining constants. Such constants are termed as symbolic constants.
#include Pre-processor directive #include tells the compiler to consider the specified file as part of the program
Pre-processor directive Pre-processor directives start in first column.
Pre-processor directive Pre-processor directives are not terminated with semicolon.
& operator ...

Get Object Oriented Programming with C++, Second 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.