answersLogoWhite

0


Best Answer

If it isn't, then you don't know for sure what value it will start at in some languages. Thus, your count will be wildly inaccurate. In other languages, it will just generate an error if you forget to initialize.

Two steps:

1. It is critical that variables be properly initialized.

2. Counter-variables are variables.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

It is critical that the accumulator variables are properly initialized so as to get the exact solution. This is because the accumulator variable uses the a loop add the value to the input variable.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

is it necessaary to initialize accumulator variables

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is it necessary to initialize accumulator variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why can't java compiler initialize local variables?

Its not that the compiler can't initialize local variables; its that the compiler does not initialize local variables.This is by design and language specification. If you want to initialize local variables, you must explicitly do so.


What function will be called by default to initialize the member variables of the object of the class?

The constructor. It's run each time a new object is created, usually setup to initialize member variables, but it can do most anything.


What method do you override to initialize instance variables in a JSP declaration?

jsp init()


What is local variables default value?

None. If you don't initialize them, you find garbage in them.


Why compilor initializes 0 to global variables?

By design. What else should it do? Of course you can initialize your variables explicitly: double pi = 3.0;


Is object a member of a class?

Yes, you would need to define your variables. Also initialize them


Which condition is not necessary in dynamic stack?

in dynamic stack we don't have to initialize the size of array while in static stack we have 2 initialize it ......


Variable lnitialization in java language?

I suppose you want to ask about variable initialization.Java initialize its variables in its constructor.


Is it necessary to initialize the const variable in c?

A constant variable cannot have its value changed at program run time.


The code of Fahrenheit to celsius code in visual basic?

'make fTemp and cTemp variables and initialize fTemp to a text box cTemp = (fTemp - 32) * 5 / 9


How do you initialize variable?

initialize simple types: int i = 0; initialize objects: Object o = null; (in java)


Where the static variables are stored?

initialize static variables are stored in data segment where uninitialized static variables are stored in BSS(block storing for Symbol) it also a part of data segment exp static int i=10;//stored in data segment static int i;//stored in BSS (uninitialized data segment) Thanks NAvin