Primary data type

The primary data types are basically standard data types that the C language defines. The language defines four of the basic data types in programming. These are:

char – these are single-byte in nature. The char data type can hold a single character in a local character set.

float – these are single-precision types of floating-point.

int – these are integers. They typically reflect the integer’s natural size on a host machine.

double – these are double-precision types of floating-point.

Apart from this, one can also apply various numbers of qualifiers to the basic data types. The long and short qualifiers applied to integers would turn out to be:

long int counter;

short int sh;
Posted on by