Professional Documents
Culture Documents
Data Types: 1.) Primary Data Type. 2.) Secondary Data Type
Data Types: 1.) Primary Data Type. 2.) Secondary Data Type
These are the types who specify which kind of data has stored in memory.
There are 2 types of data types.
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.