Write a program using fgetc() function.
Answers
Answered by
1
Answer:
The fgetc() function returns a single character from the file. It gets a character from the stream.
...
Example:
1 #include<stdio. h>
2 #include<conio. h>
3 void main(){
4 FILE *fp;
5 char c;
6 clrscr();
7 fp=fopen("myfile. txt","r");
8 while((c=fgetc(fp))! =EOF){
Answered by
1
see my attachment answer ans me and pls report my answer
Attachments:
Similar questions