Consider the below example code:
int jump_count = 0;
int main()
{
entry:
int obj = jump_count;
printf("%d\n", obj);
jump_count++;
if(jump_count < 2) goto entry;
return 0;
}
Is my jumping to the beginning of the block (as mentioned in the above code) equivalent to "entering the block"?
You're not exiting the block when you do the jump, and the object's lifetime starts at the beginning of the block, so you're still working with the same object as when you first entered the block.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With