mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Add order of evaluation table to C.
This commit is contained in:
parent
0ab144ff97
commit
c4f541dc92
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user