1.

What will be the value of the variable sum after the following program is executed? main ( ) { int sum, index; sum = 1 index = 9; do { index = index -1; sum = 2*sum; } while (index > 9);

A. 1
B. 2
C. 9
D. 0.5
Answer» C. 9


Discussion

No Comment Found

Related MCQs