1.

Point out the error in the program?_x000D_ #include_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ unsigned char;_x000D_ FILE *fp;_x000D_ fp=fopen("trial", "r");_x000D_ if(!fp)_x000D_ {_x000D_ printf("Unable to open file");_x000D_ exit(1);_x000D_ }_x000D_ fclose(fp);_x000D_ return 0;_x000D_ }

A. Error: in unsigned char statement
B. Error: unknown file pointer
C. No error
D. None of above
Answer» D. None of above


Discussion

No Comment Found

Related MCQs