Parenthesis Expression Grouping Operator

From NWN Lexicon
Revision as of 23:42, 25 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Parenthesis: Expression Grouping Operator

Parenthesis are used for grouping separate expressions to force precedence or just for readability.

int number = (2 + 3) * (4 + 5);
// number = 45
2 + (3 * (4 + 5));
// number = 29
2 + (3 * 4) + 5
// number = 19




 author: Ryan Hunt, editor: Charles Feduke