what are counters and accumulators.write with example
Answers
Answered by
5
Answer:
Accumulators are identical to counters with one difference. While they must have both an initial value and an incremental value; the incremental value is determined by a variable. Accumulators are used to keep a running total of numbers during successive passes through a loop.
Answered by
3
Answer:
The difference between counters and accumulators are:
Explanation:
Counter is one which count (or) which tells you the no. of events or occurences.
Accumulator holds the arithmetic and logical data inside the CPU. It can also called as register which stores the data temporarily.
Similar questions