Computer Science Fundamentals
Operating Systems
Objective
Mar 08, 2013
getc (stdin)
Detailed Explanation
stdin is a pointer to the standard input file (i.e. keyboard by default ) which is available to any program in open mode. So. getc(stdin) is syntactically correct and means reading from a keyboard which is what getchar () does. In fact getc ( ) is implemented as a macro (rather than as a function)
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts