Computer Science Fundamentals Operating Systems Objective
Mar 08, 2013

getc (stdin)

Choose the correct answer:
A) results in run time error
B) results in syntax error
C) is equivalent to get char ( )
D) b & c both
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
Feedback