Quiz Space

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

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

Question 20

+4 marksOne or more correct options

In C, which of the following is/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. Q6Figure question
  7. Q7Consider an integer variable holding a value “0x89209899”. Suppose the available memory addresses are starting from the…
  8. Q8Which of the following statements about array initialization in C is correct?
  9. Q9Figure question
  10. Q10Figure question
  11. Q11What will be the output of the above program?
  12. Q12Which of the following statements is true about unions in C?
  13. Q13Figure question
  14. Q14Figure question
  15. Q15Figure question
  16. Q16Figure question
  17. Q17Figure question
  18. Q18Which of the following preprocessor directives is used to define macros in C?
  19. Q19Which of the following statements is/are true regarding functions in C Language?
  20. Q21Figure question
  21. Q22Figure question
  22. Q23Figure question
  23. Q24Figure question
  24. Q25Figure question
  25. Q26Note: The answer must be an integer. For Ex: If the answer is 32, you must enter 32 only.