View Single Post
Old 11-08-2005, 03:37 PM   #6 (permalink)
QUantumAnenome
Code Monkey
 
Join Date: Mar 2005
Posts: 56
QUantumAnenome is on a distinguished road
Send a message via Yahoo to QUantumAnenome
Don't really need tmp.
Code:
        tmp=str[i];
        str[i]=str[j];
        str[j]=tmp;
can be rewritten as
Code:
        str[i] ^= str[j];
        str[j] ^= str[i];
        str[i] ^= str[j];
QUantumAnenome is offline   Reply With Quote