- #1
nenyan
- 67
- 0
What is wrong with my code?
Code:
#include <stdio.h>int
main(int argc, char *argv[])
{
int i=0;
FILE *fp;
char fname[100];
sprintf(fname,"%04X.txt",i);
fp=fopen("fname", "w");
fprintf(fp, "hello world!\n");
fclose(fp);
}
Last edited: