This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with operator
- To: Anjan Goswami <agoswami at csee dot usf dot edu>
- Subject: Re: Problem with operator
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sun, 30 Sep 2001 10:59:17 +0100
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <Pine.GSO.4.33.0109300033130.28755-100000@langly>
Anjan Goswami wrote:-
>
> Try this code.
>
> int main()
> {
> int a= 5, b=2, c;
>
> c = a - - - - - - b * 10 ;
> printf("c=%d\n",c);
This is 5 unary operators, one binary. Therefore the same as
c = a - (-b) * 10;
Which where I live is indeed
> /* c=25! */
So I don't see a problem.
Neil.