Computer Science, asked by sayalidoshi315, 13 days ago

Write a program using fgetc() function.​

_________________________________​

Answers

Answered by dk1789774
1

Answer:

The fgetc() function returns a single character from the file.

...

Example:

#include<stdio. h>

#include<conio. h>

void main(){

FILE *fp;

char c;

clrscr();

fp=fopen("myfile. txt","r");

while((c=fgetc(fp))! =EOF){

Answered by xXBhumikaxX
3

Answer:

The fputc() function converts c to an unsigned char and then writes c to the output stream at the current position and advances the file position appropriately. If the stream is opened with one of the append modes, the character is appended to the end of the stream.

Explanation:

I hope its help to you

Similar questions