4 ms·
You can goto inside a conditional statement in pretty much any language I can think of that has goto. Loops are sometimes more restricted, but even then, neith
by int_19h 5y ago
You can goto inside a conditional statement in pretty much any language I can think of that has goto.
Loops are sometimes more restricted, but even then, neither C nor Pascal prohibit it (Algol-60 did, curiously), and many languages derived from them that retained goto do the same. Off the top of my head, the only mainstream language I can think of that specifically prohibits goto into inner blocks is C#.