Page 1 of 1

C Operator Precedence

Posted: Mon Oct 05, 2009 3:31 am
by Neo
COP.PNG
COP.PNG (28.84 KiB) Viewed 4252 times
Note 1:
Parentheses are also used to group expressions to force a different order of evaluation; such parenthetical expressions can be nested and are evaluated from inner to outer

Note 2:
Postfix increment/decrement have high precedence, but the actual increment or decrement of the operand is delayed (to be accomplished sometime before the statement completes execution). So in the statement y = x * z++; the current value of z is used to evaluate the expression (i.e., z++ evaluates to z) and z only incremented after all else is done.

Re: C Operator Precedence

Posted: Tue Nov 03, 2009 12:34 pm
by Laracroft
Hi Neo,
This is Lara,
I found your information on C Operator Precedence very useful in my study.
If you have other information related to C programming, please post it so I can use it.
Ok Bye.