You are on page 1of 1

DATA TYPES

These are the types who specify which kind of data has stored in memory.
There are 2 types of data types.

1.)Primary data type.


2.)Secondary data type.

a) int (primary)It is used to store integer value upto 2 bytes and its format specifies in %d .
b) floatIt is used to store decimal number upto 4 bytes and its format specifies %f .
c) Char
char is use to store character. It can store upto one byte. Its format specifies is %c
d)Long
It is an extension to the integer. It can store upto 8 bytes and it format specifies is /d
e)Double
It is an extension of float. It can store upto 8 bytes.its format specifies is /f.
f) ARRAY structure are the secondary data type.

You might also like