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
22. Which data type is used for storing large integers beyond int range?
- long
- long long
- big int
- huge int
23. What does "volatile" keyword do?
- Prevents optimization
- Increases speed
- Reduces memory usage
- Makes variable constant
24. Which is the correct declaration for a pointer to an integer?
- int ptr
- ptr int
- int *ptr
- *int ptr
25. What is the range of "signed short int"?
- -128 to 127
- 0 to 255
- -32,768 to 32,767
- 0 to 65,535
26. Which data type would be best for storing a person's weight?
- int
- float
- char
- double
27. What is the purpose of "typedef" in C?
- Creates new data types
- Creates type aliases
- Defines constants
- Declares variables
29. What is the size of "long long int" typically?
- 4 bytes
- 8 bytes
- 16 bytes
- 2 bytes