fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6.  
  7. int k;
  8.  
  9. float j = 2.0;
  10.  
  11. switch (k = j + 1)
  12.  
  13. {
  14.  
  15. case 3:
  16.  
  17. printf ("Trapped\n");
  18.  
  19. break;
  20.  
  21. default :
  22.  
  23. printf ("Caught!\n");
  24.  
  25. }
  26.  
  27. return 0;
  28.  
  29. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Trapped