is there any reason why this should not print 3333?
int i=0,j[]={1,2};
std::cout<<(j[i]|j[++i]);
std::cout<<(j[i--]|j[i]);
std::cout<<(j[i++]|j[i]);
std::cout<<(j[i]|j[--i]);
std::cout<<std::endl;
im using vc++ 2008 express and for me it prints 2211.


Reply With Quote




depends, A good programmer should know the difference between ++i and i++.



