Problem with operator

Anjan Goswami agoswami@csee.usf.edu
Tue Oct 2 19:11:00 GMT 2001


On Tue, 2 Oct 2001, Nathan Sidwell wrote:

> Neil Booth wrote:
> > This is 5 unary operators, one binary.  Therefore the same as
> > c = a - (-b) * 10;
> > Which where I live is indeed
> >
> > > /* c=25! */
> A pedant points out it is 25, 25! is a much bigger number, that not
> even 64bit ints can deal with!

Correct. I put that "!" symbol as I was surprised.
Anyway, Thanks both of you, I didn't thought about
"-" as an unary op here. The same thing happens if
you use + too. But it is also an unary op and hence
they are not bugs although looks quite erroneous at
first sight.

cheers.

Anjan

>
> nathan
>
> --
> Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
>          'But that's a lie.' - 'Yes it is. What's your point?'
> nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
>

Anjan Goswami/Graduate Student/Department of Computer Science
http://www.csee.usf.edu/~agoswami



More information about the Gcc-bugs mailing list