swapping within a char pointer array
While reading about char pointer arrays, I was told that these offer, among other things, the advantage of swapping 2 positions without the need to store one of them in a temporary location just like we have to do with normal arrays.
It gives no example as to how exactly one does it and I couldn't code it. Please help me out with the following code:
Code:
char* [] pstr = { "string1", "string2", "string3", "string4" };
How do I go about swapping say, pstr[2] contents with pstr[1]?