Add order of evaluation table to C.

This commit is contained in:
Levi Bostian 2013-09-01 13:17:26 -05:00
parent 0ab144ff97
commit c4f541dc92

View File

@ -593,6 +593,31 @@ typedef void (*my_fnp_type)(char *);
// ... // ...
// my_fnp_type f; // my_fnp_type f;
///////////////////////////////////////
// Order of Evaluation
///////////////////////////////////////
//---------------------------------------------------//
// Operators | Associativity //
//---------------------------------------------------//
// () [] -> . | left to right //
// ! ~ ++ -- + = *(type)sizeof | right to left //
// * / % | left to right //
// + - | left to right //
// << >> | left to right //
// < <= > >= | left to right //
// == != | left to right //
// & | left to right //
// ^ | left to right //
// | | left to right //
// && | left to right //
// || | left to right //
// ?: | right to left //
// = += -= *= /= %= &= ^= |= <<= >>= | right to left //
// , | left to right //
//---------------------------------------------------//
``` ```
## Further Reading ## Further Reading