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