#include<stdio.h> #include<conio.h> void main() { FILE *fp; char ch; fp=fopen("PRIME.C","r"); while(1) { ch=fgetc(fp); if(ch==EOF) break; printf("%c",ch); } printf("\n"); fclose(fp); getch(); }
Output:-
#include<stdio.h> #include<conio.h> void main() { FILE *fp; char ch; fp=fopen("PRIME.C","r"); while(1) { ch=fgetc(fp); if(ch==EOF) break; printf("%c",ch); } printf("\n"); fclose(fp); getch(); }
Please Submit your Responses |
Authors | |
---|---|
Tinku Singh | |
Hitesh Dhanda |
MrNaukri.com - Get Sarkari Jobs, Results, Off Campus Placement Updates © 2012. All Rights Reserved | |
0 comments:
Post a Comment
Please add only useful comments.......