fork download
  1. #include <stdio.h>
  2. typedef enum{A,B,C} test;
  3.  
  4. enum test2{D,E,F};
  5.  
  6. void takeEnum(int b, test a)
  7. {
  8. printf("%d",a);
  9. }
  10.  
  11. void takeEnum2(int b, enum test2 a)
  12. {
  13. printf("%d",a);
  14. }
  15.  
  16. int main(int argc, char **argv) {
  17. takeEnum(5,B);
  18. takeEnum2(5,D);
  19. return 0;
  20. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
10