Hi,
I would like to print "You have pressed Enter key" when ever user hits Enter Key.
Please help me write this in C Program.
Can this happen using getch or getch of ncurses library too.
Regards,
Kiran.
ENTER is a newline character, so '/n' can be used. To get the ascii value:
Last edited on
of course it's '\n'
, not '/n'
Oops:) Thats what happens when its late and you ran out of mountain dew...
i found the solution already... but in a different way. Thanks