4 ms·
Sorting an array of pointers is sorting by numbers.
by rightbyte 3y ago
Sorting an array of pointers is sorting by numbers.
- misja111 3y agoSure, but what use is that? You will have your objects sorted by the absolute value of their pointer. I guess this means you'll have your objects sorted by the order in which they are allocated in the heap. Cool, but not very useful.