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
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✔✔✔
?: 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
1
Hello mate
here's your answer
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Option D - 5✔✔
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
here's your answer
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Option D - 5✔✔
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
Similar questions