Category: C++

C and C++ Keywords

Below is a cheat sheet for C and C++ keywords. Keywords are words already in use within the C++ or C programming language that perform specific actions operators or functions. Within the brackets or parentheses are synonyms for the operators. If you see c++ then this indicates this specific keyword is only for C++ and

C++ Data Types

Below is a cheat sheet for C++ data types showing the amount of bytes each one uses and there specified ranges. Data Type 16 Bits 32 Bits Range unsigned short int 2 bytes 2 bytes 0 to 65,535 short int 2 bytes 2 bytes -32,768 to 32,767 unsigned long int 4 bytes 4 bytes 0

C++ Operators

When looking at the precedence level column, remember level 1 is the highest precedence and each level thereafter has less and less precedence. Precedence Level Operators Order of Evaluation 1 ( ) . [ ] -> :: Left to Right 2 * & ! ~ ++ — + – sizeof new delete Right to Left