Created
November 14, 2018 09:58
-
-
Save shana/28b377cde053a5a407d81c069fd9fbcd to your computer and use it in GitHub Desktop.
Goto in ternary expressions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
int foo(bool x) { | |
return x ? ({ b: goto a; 1; }) : ({ a: goto b; 2; }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment