1.

What will be the output of the program ? #include int main() { FILE *fp; unsigned char ch; /* file 'abc.c' contains "This is IndiaBIX " */ fp=fopen("abc.c", "r"); if(fp == NULL) { printf("Unable to open file"); exit(1); } while((ch=getc(fp)) != EOF) printf("%c", ch); fclose(fp); printf("\n", ch); return 0; }

A. This is IndiaBIX
B. This is
C. Infinite loop
D. Error
Answer» D. Error


Discussion

No Comment Found

Related MCQs