Thread (9 messages) 9 messages, 3 authors, 2021-08-28

Error in 'man operator'

From: David Sletten <hidden>
Date: 2021-08-27 18:11:36

Hi,

I've run across what I believe is a minor error in the man page for C 
operators (https://man7.org/linux/man-pages/man7/operator.7.html ).

The man page lists casting in the 2nd row of the table:

        Operator Associativity   Notes
        () [] -> . ++ --                    left to right [1]
        ! ~ ++ -- + - (type) * & sizeof     right to left [2]
        * / %                               left to right

However, in "C A Reference Manual" (5th ed.), table 7-3 on pg. 205 shows 
that all of the operators in row 2 above have a precedence of 15 except 
for casts which have a precedence of 14. Consequently, the man page 
should display casts as the (new) 3rd row in the table above.

Thanks for your effort in maintaining this documentation.

-- 

Have all good days!
David Sletten
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help