🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: C Data Types and Operators: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What does this print? (code)
  2. Q2. Why does scanf("%d", &n); use &?
  3. Q3. What does this print? (code)
  4. Q4. What does printf("%d", 5 3); print?
  5. Q5. What does this print? (code)
  6. Q6. What does this print? (code)
  7. Q7. What does this print? (code)
  8. Q8. Which format specifier reads a double with scanf?
  9. Q9. What happens with const int MAX = 10; followed later by MAX = 20;?
  10. Q10. What does this print? (code)