Posts

Showing posts from June, 2020

Unformatted Console I/O function

Unformatted Console i/o Function The unformatted console input and output function can deal with a single character and a string of characters. Normally we use the scanf() function for input but when we use the scanf() function we need to do one thing that is pressing the enter key to evaluate the success full input. Its weakness of scanf() Function. Now to read a single character we have a function called getch() and getche(), these functions not need to press the enter key because these functions return the character that most recently typed. The getche() function echoes the characters that you typed to the screen 'e' in getche() is referred for echos. getch() just return the characters that typed without echoing iron screen. getchar() is read a single character from the standard input stream and return the corresponding integer value ( it typically ASCII value of reading character) on success. It returns EOF (End of file) on failure. It is the same as getche() but requi...

Console I/O Functions

View this gist on GitHub Input/output The information we put into a computer is called input and the information we're given from the computer is called output. There is no keyword available in c for doing input/output or I/O, all I/o in c is done by using standard library function. there are several function library is available for performing input/output. I/O library function can be classified into two broad categories 1). Console I/O functions Function to receive input from the keyboard and write output usually on the computer screen. 2). File I/O function Function to perform I/O operations on a hard disk. Here we are going to discussing on console i/o function only. The file i/o functions would be discussed in other computer. Console I/O Functions As we discuss above function to receive input from keyboard and write output on screen. The screen and keyboard together called a console. Console I/O function can be further classified into two categories formatted and unformatted c...