|
-
April 28th, 2004, 01:46 PM
#1
Simple Question about a For Loop
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|