This program is correct, and its output should be:
0.999990 9.999900e-01
or something very similar to that.
(You are not using args or argv , and the usual name for the first main parameter is argc , not args , but none of them is a problem that could affect your program behavior.)
It looks like you found a mistake in your implementation, perhaps in the runtime library, and not in the compiler itself. My short google searches did not display a link to this particular error (in fact, this was the first question).
I suggest contacting the maintainer of lcc-win; contact information is on the website . A brief description and a link to this question should contain enough information, at least for starters.
Keith thompson
source share