?
If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
Answer & Solution
Correct Answer:
Option
D
?: is known as ternary operator. If condition is true then the part just after the ? is executed else the part after : .
Join the Discussion
Login to post a comment or share your explanation.
Login