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
expression and evaluation order and precedence rules
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="Richard Heathfield, post: 2915491"] Chris Dollin said: Neither the C abstract machine nor the Standard impose an order of evaluation on the implementation. For example, 2 * 2 + 2 need not result in any additions or multiplications being carried out. The implementation could easily code this as (2 << 1) | 2 if it wanted. Or even as 6, with no runtime evaluation happening at all! Right - it doesn't determine the order of those operands. Neither does it determine the *order in which they are evaluated*. Oh, attack away, my dear chap - with any luck, you'll prove I'm wrong, and then I'll have learned something. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
expression and evaluation order and precedence rules
Top