Thread
:
the scope of variable
View Single Post
#
2
(
permalink
)
October 22nd, 2006, 03:31 AM
woldemar
Registered User
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Well, you may think about "for" statement as about such construction
your:
for(int i=0;i<10;i++)
{
do something;
}
is:
int i=0;
while (i<10)
{
do something;
i++;
}
Counter is not defined within statement block.
woldemar
View Public Profile
Find all posts by woldemar