3 ms·
> prefix and postfix ++ and -- operators IMHO, these operators are the worst features of C. Particularly I never understand the necessity of both i++ and ++i o
by riyadparvez 10y ago
> prefix and postfix ++ and -- operators
IMHO, these operators are the worst features of C. Particularly I never understand the necessity of both i++ and ++i operators in language at the same time.
- bluecalm 10y agoIt's to make code more concise. There are many idiomatic one liners to compare arrays for example or to find the first element which satisfies the condition etc. I don't mind removing them but their usecase is obvious: make the code more concise and more readable (and yes, if you program in C on daily basis you don't require a double take or thinking about what ++ does).