C-18-Q047mediumsingle_mcq
The counter variable in the sum program is initialized as:
The counter variable in the sum program is initialized as:
- a
count=0 - b
count=1 - c
count=100 - d
count=sum
ব্যাখ্যা
Since the sum starts from 1, the counter must begin at count=1. Starting at 0 would either add an unnecessary zero or shift the range of values being summed.