home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH07 / A07097.TXT < prev    next >
Encoding:
Text File  |  1993-11-05  |  551 b   |  10 lines

  1. The operand of the sizeof operator can be an object, or a
  2. reference to an object, or an expression.  Here, the first output
  3. statement prints the size of the expression "x[3]".  The second
  4. output statement prints the size of the array object "x".  If the
  5. operand is a nonarray pointer, the value returned by sizeof is the
  6. size of the pointer, not the size of the object that is pointed to.
  7. If the operand is a reference, the value returned by sizeof is the
  8. size of the referenced object.  You cannot apply sizeof to a function
  9. or a bit field.
  10.