1.

Write the value that will be stored in variable a after execution of the following code if : (i) initial value of a is 8. (ii) initial value of a is 10.int b = 9 ;if(a > b)a = a + 5 ;a = a + 2 ;

Answer»

(i) Value of a = 10, if initial value of a is 8

(ii) Value of a = 17, if initial value of a is 10



Discussion

No Comment Found

Related InterviewSolutions