Search
 
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
Name
5+7 =