An assignment of the value of a conditional expression to a variable (x = y ? z : w;) can always be
A. a switch statement with assignment statements for its case statements.
B. one or more ifs with else clauses and assignment statements for its true and false clauses.
C. one or more nested while loops with assignments for the bodies of the loops.
D. All of the above
Answer is D...I understand why...
Any yes I checked they say = rather than ==- which I also know would compile...
But shouldn't this expression
x = y ? z : w; be this x = y ? z : w;
What is the intent here- would the answer above change by changing = to ==
That's what I am not sure of..any insight
This post has been edited by jcmaster2: 04 June 2009 - 08:59 PM