Learning the C++ syntax
Learning C++ syntax is crucial to write correct and reliable code, and the ability to write effective C++ code is a fundamental skill that C++ developers must possess. In this section, we will introduce the essentials of C++ syntax, beginning with data types.
Using the C++ data types
Besides the int data type that we just have used, C++ has many other built-in data types that can be used. Here is a list of some basic data types:
| Data type | Size (bytes) | Description | 
| 
 | 4 | Stores signed integer numbers without decimals. Data range: -2,147,483,648 to 2,147,483,647 Example:  | 
| 
 | 4 | Stores unsigned integer numbers without decimals. Data range: 0 to 4,294,967,295... | 
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                