int main() { int i=-1, j=-1,k=0,l=2,m; m= i++ && j++ && k++ || l++ ; printf("%d %d %d %d %d", i,j,k,l,m); return 0; }
1. All are post increment. so first value will assigne then increment the value
2. All non zero value will be considered as true.
3. Because of K, L will also get checked.
So at last after increment output we will get as:
0 0 1 3 1
....
64.3k questions
77.9k answers
244k comments
80.0k users