What is datatypes in c ?

Datatypes: Datatypes are keywords used to assign type to the variable. Type of the variable means what kind of information can be stored in variable.  C supports 5 fundamental data types int , char ,float , double ,void.

Following table shows the description and size of datatypes in c :

Data Type

Description

Size

int

Stores integer numerical value

4 bytes

float

Stores floating-point numbers

4 bytes

char

Stores characters, literels

1 byte

double

Stores floatin-point numbers

8 bytes

%d bloggers like this: