The C environment assumes that the standard input device(keyboard) and the standard output device(Monitor) are always connected to the C environment.
Here's a list of some unformatted functions used in C along with their uses.
Input / Output
Functions
Unformatted functions
getch() |
Waits for user to press any key, returns the key pressed that can be assigned to variable |
getche() |
like getch() but echoes character pressed to screen |
getchar() |
Accepts one character from user, terminates only when user presses enter. Even if user typed more than one character return first one character only. |
putchar() |
can pass character type parameter, a single character that you want to appear on screen. |
gets() |
By passing character array as parameter can. accept string input including spaces. |
puts() |
By passing character array as parameter can display the content of string |

|

|
0 comments:
Post a Comment