Is it safe to say that :
equalsCode:*curr=*scan; curr++; scan++;
?Code:*curr++=*scan++;
Is it safe to say that :
equalsCode:*curr=*scan; curr++; scan++;
?Code:*curr++=*scan++;
Note that some people may find this syntax hard to read and you would be better with something like
Code:*curr = 1 + *scan++;
I hate real numbers.
? That wouldn't do the same thing. (The pointer curr wouldn't move, for starters.)
Oh damn, it's right, my mistake. I forgot the * and ++ operator were associative from right to left. But it's still a bit of a hazardous syntax.
I hate real numbers.
I would definitely think so (but perhaps you were posting tongue-in-cheek). It is standard idiom in C when copying stuff over.
--
Computer Programming: An Introduction for the Scientifically Inclined