Quiz Space

Programming in C · End Term · 24 Dec 2023 · September 2023 term · Set 4

Question 20: In C, which of the following are valid operations on poi…

Question 20

+4 marksOne or more correct options

In C, which of the following are valid operations on pointer variables? (Select all that apply)

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 20 of 26 in the IIT Madras BS Programming in C (Programming in C) End Term paper sat on 24 Dec 2023, in the September 2023 term (IIT M ES FOUNDATION FN EXAM FEF2 24 Dec 2023). It carries 4 marks.

This question was also asked in

More questions from this paper

  1. Q1THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : INTRODUCTION TO C PROGRAMMING (COMPUTER BASED EXAM)" ARE YOU…
  2. Q2Figure question
  3. Q3Figure question
  4. Q4Figure question
  5. Q5Figure question
  6. Q6Consider an integer variable holding a value “0x89209899”. Suppose the available memory addresses are starting from the…
  7. Q7Which of the following statements about array initialization in C is correct?
  8. Q8Figure question
  9. Q9Figure question
  10. Q10Figure question
  11. Q11Figure question
  12. Q12In a union, how is memory allocated for its members?
  13. Q13Figure question
  14. Q14Figure question
  15. Q15Suppose you open a file in “a” mode, write 10 characters - ABCDEFGHIJ, and close it. You open it again using “w” mode, …
  16. Q16Figure question
  17. Q17Figure question
  18. Q18Which of the following statements is/are true regarding functions in C?
  19. Q19Which of the following functions computes and returns the factorial of a given positive integer num?
  20. Q21Figure question
  21. Q22Figure question
  22. Q23Figure question
  23. Q24Which of the following storage classes initialize a variable with the value 0, if not initialized explicitly?
  24. Q25Figure question
  25. Q26Figure question