C programming language MCQs - Data Types
There are three varieties of data types MCQs in C programming languages char, int, and float. These primary data types have several sub types for different usages. To fully understand and learn about these data types, you need to explore it through solving MCQs with answers.
11. Which is the format modifier used for signed int in C programming?
A. %d
B. %c
C. %u
D. %ld
View Answer
12. How many byte(s) reserved by long signed int in C programming?
A. 1 byte
B. 2 bytes
C. 4 bytes
D. 8 bytes
View Answer
13. How many byte(s) reserved by long unsigned int in C programming?
A. 1 byte
B. 2 bytes
C. 4 bytes
D. 8 bytes
View Answer
14. What is the range of long signed int data type in C Programming?
A. -32768 to +32767
B. 0 to 65535
C. -2147483648 to +2147483647
D. 0 to 4294967295
View Answer
15. What is the range of long unsigned int data type in C Programming?
A. -32768 to +32767
B. 0 to 65535
C. -2147483648 to +2147483647
D. 0 to 4294967295
View Answer
16. Which is the format modifier used for long signed int in C programming?
A. %d
B. %f
C. %ld
D. %lu
View Answer
17. Which is the format modifier used for long unsigned int in C programming?
A. %d
B. %f
C. %ld
D. %lu
View Answer
18. Which is the format modifier used for float in C programming?
A. %d
B. %f
C. %lf
D. %Lf
View Answer
19. How many byte(s) reserved by float in C programming?
A. 2 bytes
B. 4 bytes
C. 8 bytes
D. 10 bytes
View Answer
20. What is the range of float data type in C Programming?
A. 0 to 4294967295
B. -3.4e38 to +3.4e38
C. -1.7e308 to +1.7e308
D. -1.7e4932 to +1.7e4932
View Answer
