Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

ternary operator in c++

(n1 > n2) ? n1 : n2;
             OR
n1 > n2 ? n1 : n2;
Source by www.cprogramming.com #
 
PREVIOUS NEXT
Tagged: #ternary #operator
ADD COMMENT
Topic
Name
6+7 =