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;
}
Printable View
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...
ok.
just the result was unexpected and that's all.