W
Wenjie
Hello,
We had a code review with the argument of
whether "i" is out of scope as illustrated
below:
for (int i=0; i<2004; i++)
{
doSomething(i);
}
for (i=0; i<2004; i++)
{
doSomethingElse(i);
}
Is it correct according to C++ language?
VC++6.0 works fine with above code.
Thanks and best regards,
Wenjie
We had a code review with the argument of
whether "i" is out of scope as illustrated
below:
for (int i=0; i<2004; i++)
{
doSomething(i);
}
for (i=0; i<2004; i++)
{
doSomethingElse(i);
}
Is it correct according to C++ language?
VC++6.0 works fine with above code.
Thanks and best regards,
Wenjie