hi,
i am writing an image into an array.
well i want to know the difference of having this command 'fprintf(fp1,"\n");'
in the following code..

fp1=fopen("f16.raw","w");

          for(m=0;m<100;m++)
      {
       for(n=0;n<100;n++)
        {
        fprintf(fp1,"%c",i[m][n]);
        }
        fprintf(fp1,"\n"); :?: 
      }
fclose(fp1);

how does the statement change the process :?:

>how does the statement change the process
It prints a row on each line rather than all rows on one line.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.