The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-74859.pdf
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Xcode
What compiler do you use?
the output still error int main() { struct SResult sample[] = { {"A1234", 10}, {"A1239", 5}, {"A1394", 7}, {"A1434", 3}, {"A1454", 5}, {"A2884", 7}, {"A4334", 9}, }; struct SResult sorted[12] = {{0}}; int i; counting_sort(sample, 12, sorted); for (i = 0; i < 12; i++){ printf("[%s, %d]\n", sorted[i].studentID, sorted[i].score); } printf("\n"); return 0; }
Dear jw. Please check updated solution.
After run with using my main function. The output is incorrect i get [, 3] [ , 1] [ , 5] [, 0] [, 0] [, 0] [, 0] [, 0] [, 0] [, 0] [, 0]
Leave a comment