Advertisements
Advertisements
Question
In a statement c = c + (x * d + e); which variable is an accumulator?
Options
d
c
e
x
MCQ
Fill in the Blanks
Advertisements
Solution
c
Explanation:
c is the accumulator because the statement updates c by adding a new amount to its current value (c = c + ...), so c accumulates the running total over repeated executions.
shaalaa.com
Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
