1.

What will be the output of the following code? static int I = 5; main() { int sum = 0 do { sum + = (1/i); }while(0 < I - -); printf(“sum of the series is %d”, sum); }

A. It will print the sum of the series 1/5+1/4+…+1/1.
B. It will produce a compilation error
C. It will produce a run time error.
D. None.
Answer» D. None.


Discussion

No Comment Found

Related MCQs