Home » Category » DotNet Visual C

DotNet Visual C: Identical code produces different output

206| Fri, 04 Jan 2008 23:30:00 GMT| tonyjeffs2_googlemail_com| Comments (1)
Thanks Ben for the reply.

I'm using the same compiler in the same way with identical code.
Swapping the two identically named files Name.CPP swaps the fault -
it is permanantly attached to one file.
I've looked at them with a hex editor and they're (apparantly)
completely identical. Baffling!
I'll try and ignore it - it's too much of a side track I think- I'll
read about sequence points though.
My garbled output seems more in keeping with the sequence of execution
that I'd expect. It seems odd for a function to return its value
before executing the cout<< line.

much appreciated,
Tony

Keywords & Tags: identical, code, produces, different, output, dotnet, visual, .net

URL: http://dotnet.itags.org/visual-c/71210/
 
«« Prev - Next »» 1 helpful answers below.
I think I need to read all your posts again with a clearer more awake
head, which I'll do.
I'm probably offline for a day,
For now I'm going to doodle with the code...

Thanks again
Tony

tonyjeffs2_googlemail_com | Fri, 04 Jan 2008 23:32:00 GMT |

DotNet Visual C Hot Answers

DotNet Visual C New questions

DotNet Visual C Related Categories