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.
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.