Is it better to declare variables at the beginning of the function or where I use them?
The advantage of declaring them at the beginning is that I can easily see the list of the local variables. But I read somewhere that this increase the likelihood of errors.
So, what's better?
In the case it's better to declare them at the beginning, should I always initialize them with a value?