...

/

Data Types and Sizes

Data Types and Sizes

Get familiar with all the data types used in C.

To define a variable, we must specify its data type. The data type of a variable indicates what kind of data can be assigned to it. It also impacts how much memory will be allocated for storing the data in that variable.

Basic data types in C

There are eight basic data types in C. We describe these and the number of bytes required to store a value of each type in the table below.

However, do note that the C standard does not specify the exact number ...