Reading a character from the keyboard keeps giving me problem. When I do a gcc -o progname progname.c and ./progname, and press enter, it doesn't stop to receive the character. How can I correct this ?

Code blocks are created by indenting at least 4 spaces
... and can span multiple lines
char c;
int main(void)
 printf("\nEnter character ");

 return 0;

save it to the address of c make that: