1. Keywords
2. Identifiers
3. Data types
4. Operators
Identifier is a sequence of characters used to define various things like variables, constants, functions, classes, objects, structures, unions etc.
| Data type | Range | Bytes |
|---|
| char | -127 to 128 | 1 |
| signed char | -127 to 128 | 1 |
| unsigned char | 0 to 255 | 1 |
| int | -32768 to 32767 | 2 |
| signed int | -32768 to 32767 | 2 |
| unsigned int | 0 to 65535 | 2 |
| short int | -32768 to 32767 | 2 |
| long int | -2147483648 to 2147483647 | 4 |
| signed short int | -32768 to 32767 | 2 |
| signed long int | -2147483648 to 2147483647 | 4 |
| unsigned short int | 0 to 65535 | 2 |
| unsigned long int | 0 to 4294967296 | 4 |
| float | 3.4e-38 to 3.4e38 | 4 |
| double | 1.7e-308 to 1.7e308 | 8 |
| long double | 3.4e-4932 to 1.1e4932 | 10 |
| Operator | Description |
|---|
| Scope Resolution Operator (::) | It is used to identify and disambiguate identifiers used in different scopes. |
| Unary Operator ( - ) | It returns the negative value of the variable to which it precedes. |
| Casting Operator ( () ) | It is used for type conversion. |
| Address of Operator ( & ) | It returns the address of a memory location. |
| sizeof() Operator | It returns the size of a memory location. |
| Comma ( , ) Operator | It allows grouping two statements where one is expected. |
| Indirection Operator or Value of Operator ( * ) | It defines pointer to a variable. |
| Ternary Operator ( ?: ) | It is a conditional expression. |
| New | Creates an instance of an object type. |
| Delete | Deletes property of an object. |