getc (stdin)
A. | results in run time error |
B. | results in syntax error |
C. | is equivalent to get char ( ) |
D. | none of the above |
Answer : C 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) |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |