Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
int i=2,j=2; int a=(i+1?--i:j++); cout<<a;
answer for this code is 1...why?
2 Answers
+ 20
since i+1==3!=0 [true] it returns --i==i-1==1...
+ 1
i=2,j=2 @ValentinaHacker
answer for this code is 1...why?