haee no
Code:
getch() returns the character typed, but you're not capturing it. You're just letting it float away into space, never to be seen again.
getch() return a whatever key u have pressed on the keyboard. so you will have to capture the return calue of the getch so that u can print the char later on in the program.if you dont capture i will wont get the value return by getch to be printed in future program.
so getch returns of type int so the code will look like this
Code:
main()
{
int ch;
.
.
ch=getch()
putch(ch);
}
and in the question it is also asked to print the message within the double qoutes
so for that u will have to do this
Code:
printf("\"Press any key\");
hope this helps you out, if u get any prob let me know
s.s.harish