[cs13001] Format of Midterm?
Mikhail Nesterenko
mikhail at cs.kent.edu
Wed Oct 17 09:28:19 EDT 2012
>
> While studying, I came across Conditional Assignments. While there
> is one slide for this in your PowerPoint,it does not seem to be in
> the book. Do we need to know this? If so, can you explain what the
> significance of a Conditional Assignment is?
Conditional assignment operates as follows:
condition ? first_expression : second_expression;
The "condition" is a Boolean expression. If the "condition" is
"true", then the first_expression is evaluated. If "condition" is
"false", then second_expression is evaluated.
Thanks,
--
Mikhail
More information about the cs13001
mailing list