If I have the following:


void SomeFunction()
{

for(int i=0; i<1000; i++)
{
// Do something
}

}


My question is the variable i redeclared as integer for each successive loop?

Is it best to declare i first for stack purposes..

void SomeFunction()
{
int i;

for( i=0; i<1000; i++)
{
// Do something
}

}

I just thinking about better code execution.