fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5.  
  6. int a=20;
  7. int b=30;
  8.  
  9. static void *arr[4] = { &&L1, &&L2, &&L3, &&L4 };
  10.  
  11. goto *arr[a==b];
  12.  
  13. L2:
  14. printf("a==b");
  15. goto L5;
  16.  
  17. L1:
  18. goto *arr[ (a>b) + 2];
  19.  
  20. L3:
  21. printf("a<b");
  22. goto L5;
  23.  
  24. L4:
  25. printf("a>b");
  26.  
  27.  
  28. L5:
  29. return 0;
  30.  
  31. }
  32.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
a<b