Re: brain gymnastics

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Fri, 2 Jun 2000 00:01:53 -0400, Tor Gausen
<tor.gausen at C2I.NET> wrote:

> Check out this perfectly legal (promise!) Euphoria
> program, what value do you suppose will be printed?

>    integer i

>    i = 1

>    i = -i

>    i /= i+1

You should get an error here, at run time - you're dividing by
zero.

>    +i = +i

>    i *= i-1

>    -i = -i

>    ? i


--
Jeff Zeitlin
jzeitlin at cyburban.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu