#include<iostream>

#include<string.h>
using namespace std;
#define N(e) "e"#e

int main()
{
int i=1,j=2,k=3;
    int m = i++ || j++ && k++;
cout<<i<<" "<<j<<" "<<k<<" "<<m;
}

output :-2 2 3 1

http://www.ideone.com/0sKBr

can anybody explain ? why are ++j and ++k are not evaluating even though &&
operator should be evaluated first in order of evaluation.

Regards,
Ankur

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to