The Precedence Rule About Declaration

xiaoxiao2021-03-05  26

A. Declarations Are Read by Starting with The name and then reading in precedence Order.

B.The Precedence, from high to low, IS:

B1. Parentheses Grouping TOGETHER Parts of a Declaration

B2. The Postfix Operators: Parentheses () Indicating A Function, and Square Brackets [] Indicating An Array.

B3. The Prefix Operator: The Asterisk Denoting "Pointer To".

C. If a const and / or volatile keyword is next to a type specifier (e.g. int, long, etc.) it applies to the type specifier. Otherwise the const and / or volatile keyword applies to the pointer asterisk on its immediate left.

转载请注明原文地址:https://www.9cbs.com/read-38607.html

New Post(0)