#include <stdio.h>
void main()
{
char n;
FILE *fp;
fp = fopen("fileexam ple.c","r");
while ((n=getchar(fp) )!=EOF)
putchar(n);
return;
}
whats the problem with above code?
itsgiving error as wrong arguments to getchar()
void main()
{
char n;
FILE *fp;
fp = fopen("fileexam ple.c","r");
while ((n=getchar(fp) )!=EOF)
putchar(n);
return;
}
whats the problem with above code?
itsgiving error as wrong arguments to getchar()
Comment