Practice · 3 of 3
Order Two, In Place
CHALLENGE
Difficulty: beginner+25 XP
Implement void order2(int *a, int *b) so that afterwards *a <= *b (swap only if needed).
Press Submit to check your solution.
Back to lesson: Practice: Pointer Surgery
Practice · 3 of 3
Implement void order2(int *a, int *b) so that afterwards *a <= *b (swap only if needed).
Back to lesson: Practice: Pointer Surgery