Guest User

Untitled

a guest
May 20th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. 6.5.3.2 Address and indirection operators
  2.  
  3. Constraints
  4.  
  5. The operand of the unary & operator shall be either a function designator, the result of a
  6. [] or unary * operator, or an lvalue that designates an object that is not a bit-field and is
  7. not declared with the register storage-class specifier.
  8. The operand of the unary * operator shall have pointer type.
  9.  
  10. Semantics
  11.  
  12. The unary & operator yields the address of its operand. If the operand has type ‘‘type’’,
  13. the result has type ‘‘pointer to type’’. If the operand is the result of a unary * operator,
  14. neither that operator nor the & operator is evaluated and the result is as if both were
  15. omitted, except that the constraints on the operators still apply and the result is not an
  16. lvalue. Similarly, if the operand is the result of a [] operator, neither the & operator nor
  17. the unary * that is implied by the [] is evaluated and the result is as if the & operator
  18. were removed and the [] operator were changed to a + operator. Otherwise, the result is
  19. a pointer to the object or function designated by its operand.
Add Comment
Please, Sign In to add comment