Y U BRACKET

I've got a small question. In the example code below:
x=(y>x) ? b:s
How come they added brackets between y>x? Is it crucial, or is it just there for understanding? Help, thanks.
closed account (zb0S216C)
The parentheses are optional; their presence doesn't affect the expression but they do affect readability. It's guaranteed that the condition expression will be fully evaluated before either subsequent expression is evaluated.

Wazzak
Topic archived. No new replies allowed.