DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR C
(avar == 1) ? (bvar == 2 ? result = 3 : (result = 5);) : (result = 0);
int a = 1, b = 2, ans; ans = (a == 1 ? (b == 2 ? 3 : 5) : 0); printf ("%d ", ans);
Source by www.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
#result
ADD COMMENT
Topic
COMMENT
Name
5+7 =
Submit