Try putting the struct declaration at the start of main, instead of after the printf statement.
When I compiled this code with gcc, I got:
Code:
$ gcc -Wall -pedantic -ansi tarotcard.c -o tarotcard
tarotcard.c: In function ‘main’:
tarotcard.c:10: warning: ISO C90 forbids mixed declarations and code
tarotcard.c:10: error: syntax error before ‘/’ token
tarotcard.c:11: warning: control reaches end of non-void function
To get rid of those warnings, you would need to remove the '//' style comment, move the struct declaration to the start of main instead of after the printf, and add a return 0; statement to the end of main. Not sure why your gcc is giving different output to mine, but hopefully this helps.