fork download
  1. #include <stdio.h>
  2.  
  3. void test(val) {
  4. printf("testing %d\n", val);
  5. switch(val) {
  6. case 1: //case.
  7. printf("1\n");
  8. break;
  9. case 2: //fcase.
  10. printf("2\n");
  11. case 3: //case.
  12. printf("3\n");
  13. break;
  14. case 4:
  15. printf("4\n");
  16. break;
  17. }
  18. return;
  19. }
  20. int main(void) {
  21. test(1);
  22. test(2);
  23. test(3);
  24. }
  25.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
testing 1
1
testing 2
2
3
testing 3
3