C Data Types 1 Questions and Answers
C Data Types questions with answers help learners understand how data is stored, manipulated, and used in C programming. Data types form the foundation of C as they define the type of data a variable can hold, such as int, float, char, or double. Mastering C data types is essential for students preparing for placement exams or programming interviews at companies like TCS, Infosys, and Wipro. This topic often features in C programming MCQs and technical test questions that evaluate understanding of memory allocation, data precision, and type conversions. Practice these programming questions and answers to strengthen your core knowledge and prepare for real-world coding challenges.
C Data Types 1
Showing 10 of
50 questions
11. What does the "unsigned" modifier do?
- Allows only positive numbers
- Allows only negative numbers
- Increases precision
- Decreases size
12. Which data type provides the highest precision for decimal numbers?
- float
- double
- long double
- int
15. What is the range of "unsigned int" on a 32-bit system?
- 0 to 65,535
- -2,147,483,648 to 2,147,483,647
- 0 to 4,294,967,295
- 0 to 32,767
17. What is the purpose of "void" data type?
- Represents empty value
- Represents any data type
- Represents null pointer
- Represents garbage value
18. Which data type would you use for a variable that stores age?
- int
- unsigned int
- float
- char
19. What is the difference between "float" and "double"?
- double has higher precision
- float has higher precision
- They are the same
- double is smaller in size