We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Swapping Strings

Let's take it up a notch. (okay, a half-notch, but still).

Assignment

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.