you can expect from that code any other result but it displays "10" :-)))Code:#include <iostream.h> int main(char*, char*[]) { int c=0; cout<<c<<c++; return 0; }
you can expect from that code any other result but it displays "10" :-)))Code:#include <iostream.h> int main(char*, char*[]) { int c=0; cout<<c<<c++; return 0; }
The standard says it's completely undefined... so in which way is displaying 1 0 a bug ? It just shows the priorities of the languages implementation...
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
ok.
just the result was unexpected and that's all.