"On Wednesday, June 28, 2006 you asked the following question;
this loop:
while(*(string1++)=*(string2++));
when does it ends?
The following answer has just been sent to you;
It doesn't if this is in C++. You assigned string2 to string1. == is for comparisons. fuckin' n00b."
i lold
Name:
Anonymous2006-07-26 0:36
Isn't that a bug as written? Shouldn't it be
while(*dest++=*src++);
?
After all, you don't want to increment your pointer before you dereference and make your first character copy, which is what the current parentheses will do. Same reason that