Operator Precedence

S

Spidey

Source : ''The C Programming Language" By Kernighan & Richie

"Some of the operators have the wrong precedence"

In which situations this happen?
 
P

pemo

Spidey said:
Source : ''The C Programming Language" By Kernighan & Richie

"Some of the operators have the wrong precedence"

In which situations this happen?


In which situations this happen?

This sounds like you've interpreted this statement as 'sometimes, the
precedence of operators changes'?

That's not what's meant - he (dmr) was just relecting on how things might
have been different. E.g., Dennis Ritchie tale of why some operators in C
have the wrong precedence:

In retrospect it would have been better to go ahead and change the
precedence... but it seemed safer just to split & and && without moving &
past an existing operator. (After all, we had several hundred kilobytes of
source code, and maybe 3 installations....)
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top