home *** CD-ROM | disk | FTP | other *** search
- The operand of the sizeof operator can be an object, or a
- reference to an object, or an expression. Here, the first output
- statement prints the size of the expression "x[3]". The second
- output statement prints the size of the array object "x". If the
- operand is a nonarray pointer, the value returned by sizeof is the
- size of the pointer, not the size of the object that is pointed to.
- If the operand is a reference, the value returned by sizeof is the
- size of the referenced object. You cannot apply sizeof to a function
- or a bit field.
-