C Programming MCQ

1:

 main( )
                    (
                       int a = 5, b = 2;
                        printf("%d", a+++b);
                    }

A.

results in syntax error

B.

prints 7

C.

prints 8

D.

none of above

 

Answer : B

Explanation :

The compiler will tokenize a + + + b as a, + +, b. So, a + + b is equivalent to a + + + b,  which evaluates to 7

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.