Question 6
Back to Exercise
In which order are the arguments of f(a(), b()) evaluated?
- A Left to right
- B Right to left
- C Unspecified – the compiler may choose Correct
- D Both at the same time
Correct Answer: Option C
The C standard leaves the order unspecified. Code whose result depends on it, such as printf("%d %d", next(), next()), may print differently on different compilers. Call the functions in separate statements.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!