question of operator '->' precedence

F

Fei Liu

On Koenig and Moo's 'Accelerated C++' p32, there is a table of operator
precedence, the first group (highest precedence) has x.y, x[y], x++,
x--. I don't see '->' here nor in the table. I believe 'x->y' has the
same precedence as x.y and x[y]. Is my guess correct?
 
J

Jakob Bieling

Fei Liu said:
On Koenig and Moo's 'Accelerated C++' p32, there is a table of
operator precedence, the first group (highest precedence) has x.y,
x[y], x++, x--. I don't see '->' here nor in the table. I believe
'x->y' has the same precedence as x.y and x[y]. Is my guess correct?

Yes, I would say so too.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top