// File Handling #include<stdio.h> #include<stdlib.h> int main() { unsigned char ch; // I think there is problem somewhere in this line ! Help !! FILE *fp; fp = fopen("abc","r"); if(fp==NULL) { printf("Unable to Open"); exit(1); } while((ch = getc(fp)!=EOF)) printf("%c",ch); fclose(fp); printf("\n",ch); return 0; }
abc contains some text such as "Kicit 44-1 Gokul;peth\0 nagpur" What should be the output of the program ?? Explain the solution !! -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.