Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Tuesday, March 10, 2015

What is primary data type ?

Every programming language support inbuilt data type or primary data type which is already available in the programming language.
The primary data types themselves could be of several types namely signed or unsigned. The maximum value hold by a data type depends upon the number of bytes it occupies in memory. for example char data type occupies 8 bit and it  store -128 to 127.
Primary data types are as follows:
Data Type
Size (bits)
Size (bytes)
Range
Format
char
8
1
-128 to 127
%c
unsigned char
8
1
0 to 255
%c
int
16
2
-32,768 to 32,767
%d
unsigned int
16
2
0 to 65535
%u
short int
8
1
-128 to 127
%d
unsigned short int
8
1
0 to 255
%u
long int
32
4
-2,147,483 to 2,147,483,647
%ld
unsigned long int
32
4
0 to 4,294,967,295
%lu
float
32
4
3.4E-38 to 3.4E+38
%f
double
64
8
1.7E-308 to 1.7E+308
%lf
long double
80
10
3.4E-4,923 to 1.1E+4,932
%Lf


No comments:

Post a Comment