The variable will be reinitialized for each loop if you indicated to do so (number=0 below), this isAnd the only problem I have is that if you declare an initialized variable inside the for loop, it will be initialized in every single loop. So... its not good in some cases.
not the same problem than reallocating it and except if you turn on the optimizer, there is nothing
the compiler can (should) do here.