Here is my code:
Code:
#include <stdio.h>
main ()
{
char letter;
printf ("Enter a letter: ");
scanf ("%c", &letter);
printf ("The letter you typed is %c\n", &letter);
system("PAUSE");
}
When I compile the code I get no errors, but when I run the generated .exe I always get the same character outputted to the screen regardless of what I type; it looks like the symbol for pi, but with only 1 vertical line. My character map shows it in the Symbol fonts section, row 3 column 8.
What am I missing? Does anyone else who uses this IDE have similar issues or any ideas on what may be causing this? I have tried disabling Norton while compiling & running the program, rebooting, deinstalling/reinstalling it, & downloading & installing a new [zipped] install file from the Dev-C++ website but it didn’t change anything.
Thanks in advance for any help.
-Dbyte