fork(5) download
  1. #include <stdio.h>
  2.  
  3. enum monster {orc,dwarf,goblin,kobold,balrog,human=128,woman} mindex=woman;
  4. typedef enum monster monstertype;
  5.  
  6. int main(int argc, char* argv[])
  7. {
  8. monstertype m= goblin;
  9. printf("goblin = %d",m);
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
goblin = 2