All Questions
2 questions
0
votes
1
answer
39
views
How to merge sort array of struct while maintaining relations between int array and char array
Does anyone know how I could maintain relations between the char and int in structs while merge sorting the ints in the struct? So if I had nameandnumber[1].buffer assigned a value that used to be at ...
2
votes
2
answers
607
views
Pset4: How does fread add properly to the struct?
In Problem Set 4 we're given the copy.c and bmp.h files. On line 47 the fread() function is called with the arguments, &bf, sizeof(BITMAPFILEHEADER), 1, and inptr. I understand what each of these ...