Sail E0 Webinar
Question

Are the following two statement same?

1.a <= 20 ? (b = 30): (c = 30);

2.(a <=20) ? b : (c = 30);


Options:
A .  Yes
B .  No
Answer: Option B


No, the expressions 1 and 2 are not same.
1. a


Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers