prog.c: In function ‘main’:
prog.c:4:11: error: incompatible types when assigning to type ‘FILE {aka struct _IO_FILE}’ from type ‘FILE * {aka struct _IO_FILE *}’
f = fopen("file","wb");
^
prog.c:5:23: error: invalid operands to binary != (have ‘FILE {aka struct _IO_FILE}’ and ‘void *’)
printf("%d",f != NULL);
^~
prog.c:6:16: error: incompatible type for argument 1 of ‘fclose’
fclose(f);
^
In file included from prog.c:1:0:
/usr/include/stdio.h:239:12: note: expected ‘FILE * {aka struct _IO_FILE *}’ but argument is of type ‘FILE {aka struct _IO_FILE}’
extern int fclose (FILE *__stream);
^~~~~~