ProgIntro

Basic Data types and variables

data_type name_of_variable;
int age;
int weight=60;

Following table displays basic data types available in c, and the amount of memory they reserve

Type size in bytes
char 1
short 2
int 4
long 8
float 4
double 8