I am having trouble

can someone please tell me what is wrong with this:
#include <stdio.h>
int main()
{
FILE *fp;
int b=34;
fp=fopen("g:\\my.txt","w");
fprintf(fp,"my file %d",b );
int fclose(fp);
return 0;
}

code blocks says C:\Users\Documents\myapp.c||In function 'main':|
C:\Users\Documents\myapp.c|8|warning: parameter names (without types) in function declaration [enabled by default]|
||=== Build finished: 0 errors, 1 warnings (0 minutes, 0 seconds) ===|
Last edited on
closed account (Dy7SLyTq)
replace int fclose(fp) with just fclose(fp)
Topic archived. No new replies allowed.