+ 1
what is the output of this code? int a=10,b=20,c; c=a/b?a:b; printf("%d",c);
4 Answers
+ 6
âą Conditional Expressions
https://www.sololearn.com/learn/C/2923/?ref=app
+ 2
thanks for the help
0
c = a/b ? a : b
c = 10/20 ? 10 : 20 // integer division
c = 0 ? 10 : 20
c = 20
0
Hi