Computer Science, asked by Iqrakafeel3865, 1 year ago

What is ternary operator (? X : Y) in C++?

Answers

Answered by artisharma47
2

ternary operator:

  • it works as if else
  • it gives result in single statement.
  • it is a conditional operator.
  • it uses (:,?)

sri14322: Name plz
artisharma47: i don't believe in frnds etc ..sorry don't msg me
artisharma47: plzz
love1244: hii
love1244: arti
love1244: hlo
taktushar8: hiiiii
artisharma47: yes......
love1244: hi
Answered by shahsaleem
2

its give result.........in satement

Similar questions