Question
If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
Answer: Option D
Was this answer helpful ?
?: is known as ternary operator. If condition is true then the part just after the ? is executed else the part after : .
Was this answer helpful ?
Submit Solution