Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- typedef enum
- {
- INT,
- CHAR,
- STRING
- } XenonType;
- void printType(XenonType tok)
- {
- switch(tok)
- {
- case INT: printf("int\n"); break;
- case CHAR: printf("char\n"); break;
- case STRING:printf("string\n"); break;
- }
- }
- int main()
- {
- XenonType a = INT;
- printType(a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement