Home » C Programming » Operators » Question
  1. Which of the following is the correct order of calling functions in the code snippet given below?
    a = f1 (10, 20 ) * f2 (30/40) + f3();
    1. f1, f2, f3
    2. f3, f2, f1
    3. The order may vary from compiler to compiler
    4. None of the above
Correct Option: C

Here, the multiplication will happen before the addition, but in which order the functions would be called is undefined. In an arithmetic expression the parentheses tell the compiler which operands go with which operators but do not force the compiler to evaluate everything within the parentheses first.



Your comments will be displayed only after manual approval.