This is probably trivial question. I am not a professional programmer, I am rather a mathematician who is doing some numerical experiment using C. I would like the output of my
Use sprintf to generate the filename.
sprintf
char buf[80]; sprintf(buf,"file%d", i); fopen(buf,"w");
Array syntax in C uses square brackets [].
[]