Re: Re: ++ BUG?? (fwd)
| From: | Ignacio Vazquez-Abrams | Date: | Mon, 27 Nov 2000 22:53:47 +0000 |
| Subject: | Re: Re: ++ BUG?? (fwd) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-39331@lists.php.net to get a copy of this message | ||
On Mon, 27 Nov 2000, Joey Smith wrote:
>
>
> On Mon, 27 Nov 2000, Zeev Suraski wrote the following to Ignacio...:
>
> > As a small proof of concept, what do you think the result of the following
> > file would be:
> >
> > void quiz(int foo, int bar)
> > {
> > printf("%d", foo+bar);
> > }
> >
> > void main()
> > {
> > int i=0;
> >
> > quiz(i++, i++);
> > }
> >
> > Zeev
> >
> >
> >
> > Hint: If you came up with any numerical answer, you're wrong.
>
> "Would be", or "is"? I get 1.
>
Huh? Wha? Oh great. First my logic fails me, now my math :)
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>