Question 6
Which of the following expression represent the order in which the expression 8 - 2 * 3 + 4 / 2 is evaluated in C?
(8 - 2) * (3 + (4 / 2))
8 - (2 * 3) + (4 / 2)
((8 - 2) * 3) + (4 / 2)
8 - (2 * (3 + 4) / 2)
Which of the following expression represent the order in which the expression 8 - 2 * 3 + 4 / 2 is evaluated in C?
(8 - 2) * (3 + (4 / 2))
8 - (2 * 3) + (4 / 2)
((8 - 2) * 3) + (4 / 2)
8 - (2 * (3 + 4) / 2)
Correct answer
8 - (2 * 3) + (4 / 2)
Question 6 of 18 in the IIT Madras BS Programming in C (Programming in C) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term (IIT M DEGREE AN EXAM QDB2 27 Oct 2024). It carries 3 marks.