G
Guest
Hi!
Is the following code really correct according to the C++-standard?
int main()
{
for(unsigned int i = 0; i < 10; ++i)
;
i = 0;
return 0;
}
I thougt i would be interpreted as local variable part of the for loop
but Visual Studio .NET 2003 seams to accept the code without
complaining.
/H
Is the following code really correct according to the C++-standard?
int main()
{
for(unsigned int i = 0; i < 10; ++i)
;
i = 0;
return 0;
}
I thougt i would be interpreted as local variable part of the for loop
but Visual Studio .NET 2003 seams to accept the code without
complaining.
/H