1.

What is the result stored in x, after evaluating the following expression : int x = 5; x=x++*2+3* – -x;

Answer»

The value of x is : 

x=x++*2 + 3 * – -x 

//sifter putting the values using precedence order x=5 *2 + 3*5 x =10 + 15; 

//finally x=25.



Discussion

No Comment Found

Related InterviewSolutions