Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Suffix allowed on expressions?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="jameskuyper, post: 3205700"] This is just a matter of reading and correctly interpreting the productions listed in section 6.7p1. I left out init-declarator, between the last two items there. See sections 6.7.5p1 and 6.7p1. I sincerely doubt that any modern compiler produces different code depending upon whether if-then-else or ?: is used, and I'm quite sure that any such minor efficiencies have nothing to do with the reason why it exists. The ?: operator is syntactic sugar, which makes certain construct much simpler to write. It's not necessary, but it is occasionally convenient, and convenience should not be underrated as a feature of a computer programming language. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Suffix allowed on expressions?
Top