twitter
    Find out what I'm doing, Follow Me :)

Input/Output Programming In C

C was not designed to be used as a language for lots of input and output, but as a systems language where a lot of internal operations are required. You would do well to use another language for I/O intensive programming, but C could be used if you desire. The keyboard input is very flexible, allowing you to get at the data in a very low level way, but very little help is given to you. It is therefore up to you to take care of all of the bookkeeping chores associated with your required I/O operations. This may seem like a real pain in the neck, but in any given
program, you only need to define your input routines once and then use them as needed. Don’t let this worry you. As you gain experience with C, you will easily handle your I/O requirements.

One final point must be made about these I/O functions. It is perfectly permissible to intermix
"scanf" and "getchar" functions during read operations. In the same manner, it is also fine to
intermix the output functions "printf" and "putchar".