hii
i need to swap 2 words by pointers
example
i tried to do like this :Code:char *arr[]={"father","mother",NULL};
but i know that char variable can't hold a word . what to do in place
of temp??
Thank you.Code:char *p1,*p2; char temp; temp=*arr; *p1=*(arr+1); *p2=temp;