Conditional Expressions
The statement
x = flag ? y : z;
is short for
if (flag)
x = y;
else
x = z;
Previous slide
Next slide
Back to first slide
View graphic version