fork(2) download
  1. #include <stdio.h>
  2. enum xxx {
  3. x1,
  4. x2,
  5. x3
  6. };
  7. enum xxx getsome();
  8.  
  9. int main(int argc, char *argv[]) {
  10. enum xxx val = getsome();
  11. printf("%d", (int)val);
  12. return 0;
  13. }
  14.  
  15. enum xxx getsome()
  16. {
  17. return x2;
  18. }
  19.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
1