Data Types
Data Types
DATA TYPE
void As the name suggests, it holds no value and is generally used for specifying the type of
function or what it returns. If the function has a void type, it means that the function will
not return any value.
-32,768 to 32,767 or -
int 2 or 4 bytes 2,147,483,648 to
2,147,483,647
unsigned int 2 or 4 bytes 0 to 65,535 or 0 to
4,294,967,295
short 2 bytes -32,768 to 32,767
unsigned short 2 bytes 0 to 65,535
long 8 bytes or (4bytes for 32 -9223372036854775808
bit OS) to
9223372036854775807
unsigned long 8 bytes 0 to
1844674407370955161
5
FLOATING POINT TYPES