Hi,
My environment is Visual C++ 6.0. On executing the below code, its not waiting for me to enter a character. After I enter a number, it goes directly to the printf statements. Please help...
Code:#include <stdio.h> int main(int argc, char** argv) { char c; int d; printf("Enter a no:\n"); scanf("%d",&d); printf("Enter a character\n"); scanf("%c",&c); printf("The number you entered is %d",d); printf("The character you entered is %c",c); return 0; }



LinkBack URL
About LinkBacks


