C Data Types 1 Questions and Answers

Take Exam

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

21. What is the size of "short int" typically?

  • 1 byte
  • 2 bytes
  • 4 bytes
  • 8 bytes
Show Answer Report

22. Which data type is used for storing large integers beyond int range?

  • long
  • long long
  • big int
  • huge int
Show Answer Report

23. What does "volatile" keyword do?

  • Prevents optimization
  • Increases speed
  • Reduces memory usage
  • Makes variable constant
Show Answer Report

24. Which is the correct declaration for a pointer to an integer?

  • int ptr
  • ptr int
  • int *ptr
  • *int ptr
Show Answer Report

25. What is the range of "signed short int"?

  • -128 to 127
  • 0 to 255
  • -32,768 to 32,767
  • 0 to 65,535
Show Answer Report

26. Which data type would be best for storing a person's weight?

  • int
  • float
  • char
  • double
Show Answer Report

27. What is the purpose of "typedef" in C?

  • Creates new data types
  • Creates type aliases
  • Defines constants
  • Declares variables
Show Answer Report

28. Which of these is a floating-point data type?

  • int
  • char
  • float
  • long
Show Answer Report

29. What is the size of "long long int" typically?

  • 4 bytes
  • 8 bytes
  • 16 bytes
  • 2 bytes
Show Answer Report

30. Which format specifier is used for "double"?

  • %f
  • %lf
  • %d
  • %Lf
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test