sharptooth
Broken In
Well if this not a bug than i dont understand wat it is?
i today found that "Microsoft Visual C++" v6.0 on which i performed most of my c and c++ projects, has a bug. i cud not believe it, it was a total annoy for me.
run this problem on MSVisualC++:
the output is 14 in MSVisualC++, strange, it shud be 13.
in tc++ however it gives the correct output as 13, also 13 on C# compiler.
Now can anyone here try to clarify why MSVisualC++ gave wrong output? ?
i today found that "Microsoft Visual C++" v6.0 on which i performed most of my c and c++ projects, has a bug. i cud not believe it, it was a total annoy for me.
run this problem on MSVisualC++:
Code:
int x=5,y;
y=++x + ++x;
cout<<y;
the output is 14 in MSVisualC++, strange, it shud be 13.
in tc++ however it gives the correct output as 13, also 13 on C# compiler.
Now can anyone here try to clarify why MSVisualC++ gave wrong output? ?