Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Simulating a while-else contruct with gotos and an if-else */
- goto looptest;
- body: {
- /* code for the loop body goes here
- "continue" translates to "goto looptest;"
- "break" translates to "goto done;"
- */
- }
- looptest:
- if (condition) {
- goto body;
- } else {
- /* code for the else-clause goes here */
- }
- done:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement