Don't worry about it.
Allocating variables
------------------
http://qoy.tripod.com
while (...)
{
int i;
...
}
and you want to know how much processor time will be used for the declaration of the variable 'i' within the loop? Assuming that is your question...
If it's a tight loop then the variable 'i' will (hopefully) end up being put in a machine register. If this is the case then there is no overhead. If the loop is quite complicated and many variables are used in it then there won't be enough registers. In this case, variables are "spilled" into stack memory.
The variables are then transferred netween memory and registers as necessary, using an instruction like
mov eax, [ebp-24] or mov [ebp-24], eax
If you ask your compiler to generate a disassembly then you can see exactly which variables end up on the stack, by looking for instructions of this type. To reduce the number of variables that end up on the stack you have to minimize the number of variables accessed within the loop.
Interestingly, moving the variable declaration outside the loop does not make the loop any faster. The compiler's optimizer can easily see what the true live range of each variable is. Put your variable declarations in the place that make the code most clear!