KnowledgeBoat Logo

Computer Studies

Define accumulator. Is it necessary to initialise an accumulator?

QBASIC: Conditional Statements

10 Likes

Answer

An accumulator is a numeric variable which when defined within a program, stores the data value in the memory which keeps on changing or getting updated with the counter or some other values supplied through input.

It is necessary to initialise an accumulator to avoid getting garbage value during the execution of the program.

Answered By

3 Likes


Related Questions