What is an accumulator? What does it mean to initialize and update an accumulator in a program?

What will be an ideal response?

An accumulator is a numeric variable used for accumulating (adding together) something, such as a total dollar amount. You initialize an accumulator to assign a beginning value to it, and an accumulator is usually initialized to the number 0. You update an accumulator by adding a number to or subtracting a number from the value stored in the accumulator. An accumulator is usually updated by an amount that varies. It is updated each time the loop instructions are processed.

Computer Science & Information Technology

You might also like to view...

The Task Manager can be used to close a nonresponsive program

Indicate whether the statement is true or false

Computer Science & Information Technology

________ in PowerPoint refers to the ease with which a person with physical challenges is able to access and understand a presentation

Fill in the blank(s) with correct word

Computer Science & Information Technology