Hello list,
Yestoday I encounter this problem during a test:
1int x = 11;
2std::cout<< x << x-- << ++x;
I think it should be :
11 11 11
I wrote the fellowing code :
#include
int main() {
int x = 11;
std::cout<< x << x-- << ++x << std::endl;
}
compile the code above wi
Sorry for missing version info of my compiler:
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-
wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr --enable-
languages=c,c++,fortran,objc,o