Unformatted Input Function
Unformatted Input Function | |||||
---|---|---|---|---|---|
Input Function | Header File | Use of the function | |||
1) getch( ); | conio.h | It reads the typed single character instantly but does not echo / display it on the screen. Enter key is not required | |||
2) getche( ); | conio.h | It reads the typed single character instantly and echoes / displays it on the screen. Enter key is not required. | |||
3) getchar(); | stdio.h | It reads the typed single character only after hitting the enter key. It echoes / display the character on the screen. |
4)gets(); | stdio.h | It read the typed string completely only after hitting the enter key. It echoes the string on the screen |
---|---|---|
0 comments:
Post a Comment