Question 7
Consider the following code snippet.
What will be the value of x, y and z after executing the given code snippet?
x = 0, y = 4, z = 0
x = 1, y = 4, z = 1
x = 1, y = 3, z = 1
x = 0, y = 3, z = 0
Consider the following code snippet.
What will be the value of x, y and z after executing the given code snippet?
x = 0, y = 4, z = 0
x = 1, y = 4, z = 1
x = 1, y = 3, z = 1
x = 0, y = 3, z = 0
Correct answer
x = 0, y = 3, z = 0
Question 7 of 16 in the IIT Madras BS Introduction to C Programming (Intro to C Programming) Qualifier paper sat on 13 Apr 2025, in the January 2025 term (IIT M ES REATTEMPT AN EXAM QEQ1 13 Apr 2025). It carries 3 marks.