Re: printf execution problem
- From: Flash Gordon <spam@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 16:35:09 +0100
rahul8143@xxxxxxxxx wrote:
David Resnick wrote:
rahul8...@xxxxxxxxx wrote:
Does printf output depends on compilers or operating systems? I have one program int main() { int i=5; printf("%d %d %d",i++,i++,i++); return 0; }
<snip>
Learn to read the group and FAQ before posting, this is asked all the time. http://www.eskimo.com/~scs/C-faq/q3.2.html
I have first read above link and then decided to ask question. The link said that such programs behaviour is undefined and depends on compiler. But i thought that is there any hidden relationship of this behaviour to OS.
There may be, there may not. It really does not matter. All that matters is that you never do anything like the above.
> Nowadays no one uses DOS but everybody says to use GCC
but most people also uses VC++. so doesn't it create a war of compilers(which to use?)
Whichever you want, from the point of view of this group it makes little difference since both can do a reasonable job of compiling code that conforms to C89 and producing diagnostics where required. Each has advantages and disadvantages. The best place to discuss the relative merits of compilers for Windows, DOS or any other system is in a group dedicated to that system.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
.
- References:
- Re: printf execution problem
- From: rahul8143
- Re: printf execution problem
- Prev by Date: Re: A[x][y][z]
- Next by Date: Re: Global variables
- Previous by thread: Re: printf execution problem
- Next by thread: Re: printf execution problem
- Index(es):
Relevant Pages
|