Return in a Loop
static int code = 0;
void funcWhileIfReturn (void)
{
while (code > 0)
{
if (code == 3)
{
return;
}
--code;
}
if (code == 0)
{
code++;
}
}
The return statement causes the program to jump to the end of the function. This jump breaks the control flow and causes a knot in the code.