I was able to get this to work.
If anyone is using this for reference, I couldn't just dereference *ascending and expect it to be print correctly; I made a to print function to print a **int and it worked.
User Profile
Collapse
-
Sorting an array of pointers
Hi everyone, I'd just like to preface by saying any input or direction in this would be very much appreciated; i've been working on this endlessly and can't figure out what's going wrong.
I'm learning about pointers, and I thought I had that down, so now I'm working on double pointers. First i just ask the user for a number of values, (ie: 4), and then the actual values (4 3 2 1). My program puts the values into the array. I then create...
No activity results to display
Show More
Leave a comment: