WorksheetsData Types in C - GeeksforGeeks
Total questions: 10
Worksheet time: 5mins
What is the range of the short int data type in C?
0 to 65,535
-32,768 to 32,767
-2,147,483,648 to 2,147,483,647
0 to 4,294,967,295
What is the size of the char data type in C?
8 bytes
4 bytes
2 bytes
1 byte
What is the range of the float data type in C?
1.2E-38 to 3.4E+38
0 to 255
1.7E-308 to 1.7E+308
-128 to 127
What is the size of the double data type in C?
1 byte
4 bytes
8 bytes
2 bytes
What is the purpose of the void data type in C?
To store integer values
To store single characters
To specify no value
To store decimal numbers
What is the format specifier for printing a float value in C?
%c
%lf
%d
%f
Which data type is used to store only a single character in C?
int
double
float
char
What is the range of the long long int data type in C?
0 to 18,446,744,073,709,551,615
-32,768 to 32,767
0 to 65,535
-(2^63) to (2^63)-1
What is the size of the unsigned char data type in C?
8 bytes
1 byte
2 bytes
4 bytes
What is the format specifier for printing a double value in C?
%f
%d
%lf
%c
