1.

Write the value that will be stored in variable num and sum after execution of following code :int sum = 0, num = -2;do{ sum = sum + num;num++;}while (num < 1);

Answer»

num = 1, sum = -2.



Discussion

No Comment Found

Related InterviewSolutions