Lecture 3 Flashcards

1
Q

to display the integer number in decimal

A

%i or %d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

to display in octal representation

A

%o

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

to display in hexadecimal

A

%x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Char size(bytes), range and format

A

size = 1
range = -128 to 127
format = %c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

unsigned Char size(bytes), range and format

A

size = 1
range = 0 to 255
format = %c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

short int size(bytes), range and format

A

size = 2
range = -32,768 to 32,767
format = %hd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

unsigned short int size(bytes), range and format

A

size = 2
range = 0 to 65535
format = %hu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Long int size(bytes), range and format

A

size = 4
range = -2,147,483,648 to 2,147,483,647
format = %ld

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

float size(bytes), range and format

A

size = 4
range = 1.2E-38 to 3.4E+38
format = %f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

double size, range and format

A

size = 8
range = 1.7E-308 to 1.7E+308
format = %lf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly