Computer Science, asked by iznu183, 1 year ago

What is the use and syntax of ternary operator

Answers

Answered by stuti49
12
syntax of ternary operator::
result= true statement?value1:value2;
the ternary operator is short form of if..else..statement and it is also useful in saving the space as it takes few space and it is convenient to use.
Similar questions