+ 3
Could anyone explain this code...?
int x=7, y=4; if(++x>6||++y<5) cout<<x<<y; else cout<<x*y;
5 RĂ©ponses
+ 7
x = 7. y = 4.
++x > 6 ???
8 > 6??
True
|| ...
True, moving on.
cout<< 8 << 4;.
Output: 84
The condition after the 'or' was never evaluated before the 'or' because it didn't matter. The first condition was true anyway.
+ 5
@Yash Yes.
0
Thank you very much...đđđđ
0
wow