Quiz Space

Programming in C · End Term · 13 Sept 2026 · May 2026 term

Programming in C End Term 13 Sept 2026 — Question 19

Question 19

+4 marksOne correct option

Consider the following C program.

What will be the output?

  1. A

    5

  2. B

    8

  3. C

    13

  4. D

    Compilation Error

Show answer

Correct answer

  • B

    8

Question 19 of 25 in the IIT Madras BS Programming in C (Programming in C) End Term paper sat on 13 Sept 2026, in the May 2026 term (Programming in C 13 Sep 26). It carries 4 marks.

More questions from this paper

  1. Q1Which of the following components is primarily responsible for performing arithmetic and logical operations in a comput…
  2. Q2A 4-byte integer 0x89ABCDEF is stored beginning at memory address 4000 in a Little-Endian system.\ Which value will be …
  3. Q3Consider the following C program. What will be the output?
  4. Q4Which of the following statements about typedef in C is correct?
  5. Q5Which of the following file opening modes allows reading and writing while preserving the existing file contents?
  6. Q6Consider the following C program. What will be the output?
  7. Q7Consider the following computation steps. What is the final value stored in R[3]?
  8. Q8Consider the following C program. (ASCII value of 'B' is 66.) What will be the output?
  9. Q9Consider the following C program. What will be the output?
  10. Q10Consider the following generalized memory computations. What is the final value stored in M[3]?
  11. Q11The decimal equivalent of the following 8-bit signed two's complement number is
  12. Q12Consider the following C code. What will be the output?
  13. Q13Consider the following recursive function. What will be the output?
  14. Q14Consider the following C program. What will be the output?
  15. Q15Consider the following C program. What will be the output?
  16. Q16Which stage of the C compilation process is responsible for expanding macros and processing header files?
  17. Q17Consider the following C program. What will be the output?
  18. Q18Which preprocessor directive is used to include the contents of another source or header file into the current program?
  19. Q20Which of the following statements are correct regarding character encoding?
  20. Q21Consider the following C program. What will be the output printed on the screen?
  21. Q22Consider the following C program. What will be the output?
  22. Q23Consider the following C program. What will be the output?
  23. Q24Consider the following C program. What will be the output?
  24. Q25Which of the following statements about pointers are correct?