

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of the following C code if there is no error in stream fp?#include <stdio.h> int main() { FILE *fp; fp = fopen("file1", "w"); printf("%d n", ferror(fp)); return 0; } |
A. | 1 |
B. | Compilation Error |
C. | 0 |
D. | Garbage value |
E. | Any nonzero value |
Answer» D. Garbage value | |