can anyone please explain me what is Ternary operator????
plz anyone...!!!!
Answers
Answered by
3
The ternary operator is an operator that takes three arguments. The first argument is a comparison argument, the second is the result upon a true comparison, and the third is the result upon a false comparison. If it helps you can think of the operator as shortened way of writing an if-else statement.
jiyasingh29:
can u plz give some eq. with the solution....
Answered by
2
In mathematics, a ternary operation is an n-ary operation with n = 3. A ternary operation on a set A takes any given three elements of A and combines them to form a single element of A. An example of a ternary operation is the product in a heap
Similar questions