SUMMARY
  • For writing the source code, C++ uses ASCII code.
  • The unary operator (&) takes the address of the operand. The operand must be an lvalue. It must not operate on variable declared as register type.
  • The operand of Unary ~ operator must be integral type and the result is ones complement of the operand.
  • Hexadecimal constants start with 0x or 0X.
  • Blanks, horizontal and vertical tabs, newlines, form feeds and comment (collectively called as white space) are treated as separators. They are ignored by the compiler.
  • An integer constant is considered octal if it begins with 0 and consists of digits 0–7 only.
  • The types “short int” and “long int” can be specified by just short and long (omitting int).
  • It may be noted that Operand of * and / must ...

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.