DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+8 =
Submit