Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ ternary statement

x = condition ? expression1 : expression2

// Example:
double x = 1 > 0 ? 10 : 20; // put any value
Source by www.cprogramming.com #
 
PREVIOUS NEXT
Tagged: #ternary #statement
ADD COMMENT
Topic
Name
9+5 =