Lecture 3 Flashcards
1
Q
to display the integer number in decimal
A
%i or %d
2
Q
to display in octal representation
A
%o
3
Q
to display in hexadecimal
A
%x
4
Q
Char size(bytes), range and format
A
size = 1
range = -128 to 127
format = %c
5
Q
unsigned Char size(bytes), range and format
A
size = 1
range = 0 to 255
format = %c
6
Q
short int size(bytes), range and format
A
size = 2
range = -32,768 to 32,767
format = %hd
7
Q
unsigned short int size(bytes), range and format
A
size = 2
range = 0 to 65535
format = %hu
8
Q
Long int size(bytes), range and format
A
size = 4
range = -2,147,483,648 to 2,147,483,647
format = %ld
9
Q
float size(bytes), range and format
A
size = 4
range = 1.2E-38 to 3.4E+38
format = %f
10
Q
double size, range and format
A
size = 8
range = 1.7E-308 to 1.7E+308
format = %lf