You could make a structure:I need to show a volume and the hour it was recorded for various data manipulations (smallest number, largest, sort in ascending order, etc) How do I return both the hour and the volume in my function?
Quzah.Code:struct Data { int hour; int volume; }; Data smallest( ... ) { struct Data d = { -1, -1 }; ... do stuff ... d.hour = hour; d.volume = volume; return d; }