'goto" gone from computer languages or is it!

Bill Sudbrink wh.sudbrink at verizon.net
Fri May 13 14:22:46 CDT 2005


Sean 'Captain Napalm'Conner wrote:
> It was thus said that the Great Bryan Pope once stated:
> > 
> > And thusly Mike Loewen spake:
> > > 
> > > On Fri, 13 May 2005, Bryan Pope wrote:
> > > 
> > > >>   So, to tie this in with the Zen Koan threads, what is 
> the result of
> > > >>
> > > >> 	int i = 0;
> > > >> 	printf("%d %d %d\n",i++,i++,i++);
> > > >>
> > > >
> > > > IIRC it should output:
> > > >
> > > > 2 1 0
> > > 
> > >     Not on my system:
> > > 
> > > 0 1 2
> > > 
> > 
> > I checked after I sent the message and my system output "2 1 
> 0"...  I am 
> > using Watcom C 10.6 under QNX 4.25.
> 
> To add fuel to the conversation,
> the IRIX 4.0.5 C compiler would produce
> 
> 	0 0 0
> 
> which is also a correct answer.

For those of you playing the home version of the game...
It entirely depends on the definition of an "execution unit" which
is left up to the compiler vendor.



More information about the cctalk mailing list