I'd like to do this for my selection sort.
I can do it for a member of a structure, e.g. if STUCT info[] is a structure and name is a string member of the structure:
I'm trying to create a swap which causes every member of the structure for a particular index to swap it's index (not just for a specific member like in the example I provided).Code:strcpy(temp, info[a].name); strcpy(info[a].name, info[b].name); strcpy(info[b].name, temp);
I hope that's clear.
Thanks for any help!