Computer Studies
Define accumulator. Is it necessary to initialise an accumulator?
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.
Related Questions
What are the different types of conditional statements used in QBASIC programming? Explain.
An unconditional GOTO sets up an infinite loop. Explain with an example.
What are the different types of relational operators used along with a conditional statement in a program?
What are the features of QBASIC as a programming language?