Computer Science, asked by mado8150, 1 year ago

If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
A.12
B.1
C.Error
D.5

Answers

Answered by choudhary21
2
Solution(By Choudhary21)

?: is known as ternary operator.

If condition is true then the part just after the is executed else the part after : .

D. 5✔✔✔
Answered by afruja70
1
Hello mate

here's your answer

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

Option D - 5✔✔

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

Hope it helps you
Similar questions