Discussion :: Input / Output
-
Point out the error/warning in the program?
#include
A.
Error: in unsigned char declaration |
B.
Error: while statement |
C.
No error |
D.
It prints all characters in file "trial" |
Answer : Option A
Explanation :
Here, EOF is -1. As 'ch' is declared as unsigned char it cannot deal with any negative value.
Be The First To Comment