Re: precedence
From: Sumit Rajan (sumitrajan_at_myrealbox.com)
Date: 09/14/04
- Next message: Chris Dollin: "Re: precedence"
- Previous message: Francis Glassborow: "Re: precedence"
- In reply to: Andy White: "precedence"
- Next in thread: Chris Dollin: "Re: precedence"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 14 Sep 2004 15:51:42 +0530
"Andy White" <brighamandrew@msn.com> wrote in message
news:10kdf0531e5qad8@corp.supernews.com...
> the statement:
>
> foo.b[0] = 7;
>
> indicates the first element of the array member of the data structure. My
> question is, why aren't the brackets evaluated first then the dot operator
> after since the brackets are higher on the precedence chart? Thanks
A '[]' operator does not have higher precedence than a '.' operator. They
have the SAME precedence.
Regards,
Sumit.
- Next message: Chris Dollin: "Re: precedence"
- Previous message: Francis Glassborow: "Re: precedence"
- In reply to: Andy White: "precedence"
- Next in thread: Chris Dollin: "Re: precedence"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|