

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Pointer-Pointers
incomplete
2: Array of Pointers
incomplete
3: Void Pointers
incomplete
4: Swapping Integers
incomplete
5: Swapping Strings
incomplete
6: Generic Swap
incomplete
This lesson's interactive features are locked, please to keep using them
Let's take it up a notch. (okay, a half-notch, but still).
Complete the swap_strings function. It swaps the values stored in the string pointers.
Remember, char ** is a pointer to a char pointer, which means we can simply switch the "address" that we're referencing in our swap function.
You won't need to use any str_ specific functions for this swap implementation.