I have a bit unusual situation - I want to use goto statement to jump into the loop, not to jump out from it.
There are strong reasons to do so - this c
It seems to me that you didn't declare i
. From the point of declaration completely depends whether or not this is legal what you are doing, but see below for the initialization
for
the assignment of 0
to it will not be performed.goto
.In both languages you have a more important problem, this is if the value of i
is well defined, and if it is initialized if that value makes sense.
Really if there is any way to avoid this, don't do it. Or if this is really, really, performance critical check the assembler if it really does what you want.