QUIZ 8

What is the output?

a. 2
b. 0
c. 1
d. 22

Answer :  c

MAX(x,y) is replaced by x>y?1:0  in the program ,so ,the final expression is
MAX(10,i)+1 is translated as 10>i?1:0+1;

Leave a Reply

Your email address will not be published. Required fields are marked *