Quiz Space

Programming in C · End Term · 13 Apr 2025 · January 2025 term · Set 1-3

Question 12: In C, which of the following is/are valid operation(s) o…

Question 12

+4 marksOne or more correct options

In C, which of the following is/are valid operation(s) on pointer variables?

Select all that apply.

  1. A

    Dividing one pointer variable by another pointer variable.

  2. B

    Comparing two pointers variables for equality.

  3. C

    Incrementing/Decrementing a pointer variable (e.g. ptr++/ ptr–).

  4. D

    Multiplying two pointer variables.

Show answer

Correct answers

  • B

    Comparing two pointers variables for equality.

  • C

    Incrementing/Decrementing a pointer variable (e.g. ptr++/ ptr–).

Question 12 of 17 in the IIT Madras BS Programming in C (Programming in C) End Term paper sat on 13 Apr 2025, in the January 2025 term (IIT M ES REATTEMPT AN EXAM QEQ1 13 Apr). It carries 4 marks.

This question was also asked in

More questions from this paper

  1. Q1Figure question
  2. Q2Figure question
  3. Q3In C programming, which memory region is primarily used for storing local variables of functions and function call info…
  4. Q4Figure question
  5. Q5Figure question
  6. Q6Figure question
  7. Q7Figure question
  8. Q8Figure question
  9. Q9Figure question
  10. Q10Which of the following is not a storage class specifier?
  11. Q11Which of the following statements is/are true about the if statement in C?
  12. Q13Figure question
  13. Q14Figure question
  14. Q15Figure question
  15. Q16Figure question
  16. Q17Figure question