Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 6.5.3.2 Address and indirection operators
- Constraints
- The operand of the unary & operator shall be either a function designator, the result of a
- [] or unary * operator, or an lvalue that designates an object that is not a bit-field and is
- not declared with the register storage-class specifier.
- The operand of the unary * operator shall have pointer type.
- Semantics
- The unary & operator yields the address of its operand. If the operand has type ‘‘type’’,
- the result has type ‘‘pointer to type’’. If the operand is the result of a unary * operator,
- neither that operator nor the & operator is evaluated and the result is as if both were
- omitted, except that the constraints on the operators still apply and the result is not an
- lvalue. Similarly, if the operand is the result of a [] operator, neither the & operator nor
- the unary * that is implied by the [] is evaluated and the result is as if the & operator
- were removed and the [] operator were changed to a + operator. Otherwise, the result is
- a pointer to the object or function designated by its operand.
Add Comment
Please, Sign In to add comment