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...
int main(int argc, char** argv)
printf("Enter a no:\n");
printf("Enter a character\n");
printf("The number you entered is %d",d);
printf("The character you entered is %c",c);