|
|
|
|
|
by marcosdumay
3856 days ago
|
|
Oh, I've just closed a Haskell window, saw the title and thought "how would I concatenate strings?", but I'm digressing... But no, not only for for(;;). There's also the too common array traversal: while(something) a[x] = b[x++]; And lots and lots of ugly but useful uses in pointer arithmetics where they make things clear. They have no place in any other language, but I'd really miss both operators in C. |
|
Wait, isn't this an undefined behavior? Is the order of evaluations of `x` in the left side and `x++` in the right side defined? I'm always confused at things like this!