+ 1
Output
int i=-3,j=2,k=0,m; m=++i&&++j||++k; cout<<i<<j<<k<<m;
6 Respuestas
+ 4
i=-2
j=3
k=0
m=1
+ 4
m=true(stored as 1)
you incremented the values while obtaining m.
As for why k is still 0, the || operator skips the 2nd term if the first is true.
Thus, only k is not incremented
+ 2
Why not run it?
+ 2
but how
and why
+ 1
thanks i understand....
0
which first term from right aur left.....
coz if you incremmented k then it will print as 1 but if you doesn't then this side of && will be false