C-18-Q046mediumsingle_mcq
In the textbook sum program, the accumulator variable is initialized as:
In the textbook sum program, the accumulator variable is initialized as:
- a
sum=1 - b
sum=0 - c
sum=100 - d
sum=count
ব্যাখ্যা
An accumulator must start at so the first addition gives the correct running total. Initializing it to any other value would offset the final sum incorrectly.