Point out the error, if any, in the following program.
#include "stdio.h"
main()
{
unsigned char;
FILE *fp;
fp = fopen ("trail", "r");
while (( ch = getc (fp)) ! = EOF)
printf ("%c", ch);
fclose (fp);
}5
876 5b5cc7dde4d2b419777515d2
Q: Point out the error, if any, in the following program. #include "stdio.h" main() { unsigned char; FILE *fp; fp = fopen ("trail", "r"); while (( ch = getc (fp)) ! = EOF) printf ("%c", ch); fclose (fp); }
- Show Answer
- Workspace
- Discuss