The problem im having is, my program takes the name (and various other details) in from a data file. Works out the total price for each week (adding if there are two or more sales in one week) and then outputs the total along with the week number. That all runs perfectly.

The hard part is when I try to print the largest single sale. I successfully print the week number, the price and the number of units. However I cant work out how to print the name. my fprintf statement is as follows.

Code:
 
fprintf(output, "\nThe largest single sale was in week %i, when %i units of %s were sold at %g per unit.\n", largest.week, largest.units, &largest.name[0] (float)largest.price/100) ;
Any help is appreciated.