Quiz Space

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

Question 25: Which of the following statements about pointers are cor…

Question 25

+5 marksOne or more correct options

Which of the following statements about pointers are correct?

Select all that apply.

  1. A

    A pointer variable stores the address of another variable.

  2. B

    Pointer arithmetic depends on the data type of the pointer.

  3. C

    Dereferencing a NULL pointer is safe.

  4. D

    Two pointers can point to the same memory location.

Show answer

Correct answers

  • A

    A pointer variable stores the address of another variable.

  • B

    Pointer arithmetic depends on the data type of the pointer.

  • D

    Two pointers can point to the same memory location.

Question 25 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 5 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. Q19Consider the following C program. What will be the output?
  20. Q20Which of the following statements are correct regarding character encoding?
  21. Q21Consider the following C program. What will be the output printed on the screen?
  22. Q22Consider the following C program. What will be the output?
  23. Q23Consider the following C program. What will be the output?
  24. Q24Consider the following C program. What will be the output?