How do I read in from the keyboard when using unions.?
my code:
printf("Type a character: \n");
scanf("%c", number.c);
I am getting this error:
/tmp/cc6fjFyR.o(.text+0x5f): In function `main':
: undefined reference to `scan'
collect2: ld returned 1 exit status
I tried it with and w/o address operand. My book doesn't seem to mention how to do this. Any suggestions? Thanks