Hello

If I take a string declaration as below:

char str[5]="Mike";
than the following statement does NOT produce error
str[start] ^= str[end];

If I take a string declaration as below:
char *str="Mike";
that the above mentioned statement str[start] ^= str[end]; DOES produce error.

So I want to know , that if my string declaration is as in second case (char *str="Mike" than , how to write XOR statement so that it should not produce error.

Thank You