Code:
void printDetail(void)
{
/*
* Displays final result
* Prints entire contents of array according to the co-ordinates given from determineCol and determineRow
*/
fprintf(fpout,"\n");
fprintf(fpout," REPEAT %3d %3d %3d %3d %3d %3d %3d\n\n",coords[0][0],coords[0][1],coords[0][2],coords[0][3],coords[0][4],coords[0][5],coords[0][TOTALCOL]);
fprintf(fpout,"TELEVISION AD %3d %3d %3d %3d %3d %3d %3d\n\n",coords[1][0],coords[1][1],coords[1][2],coords[1][3],coords[1][4],coords[1][5],coords[1][TOTALCOL]);
fprintf(fpout," NEWSPAPER AD %3d %3d %3d %3d %3d %3d %3d\n\n",coords[2][0],coords[2][1],coords[2][2],coords[2][3],coords[2][4],coords[2][5],coords[2][TOTALCOL]);
fprintf(fpout," RADIO AD %3d %3d %3d %3d %3d %3d %3d\n\n",coords[3][0],coords[3][1],coords[3][2],coords[3][3],coords[3][4],coords[3][5],coords[3][TOTALCOL]);
fprintf(fpout,"WORD OF MOUTH %3d %3d %3d %3d %3d %3d %3d\n\n",coords[4][0],coords[4][1],coords[4][2],coords[4][3],coords[4][4],coords[4][5],coords[4][TOTALCOL]);
fprintf(fpout," OTHER %3d %3d %3d %3d %3d %3d %3d\n\n",coords[5][0],coords[5][1],coords[5][2],coords[5][3],coords[5][4],coords[5][5],coords[5][TOTALCOL]);
fprintf(fpout," ===== ==== ==== ==== ==== ==== ==== ====\n");
fprintf(fpout," TOTAL %4d %4d %4d %4d %4d %4d %4d\n",coords[TOTALROW][0],coords[TOTALROW][1],coords[TOTALROW][2],coords[TOTALROW][3],coords[TOTALROW][4],coords[TOTALROW][5],coords[TOTALROW][TOTALCOL]);
fprintf(fpout," ===== ==== ==== ==== ==== ==== ==== ====\n");
}
by using this method to show the values in the array.