home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH03 / A03103.TXT < prev    next >
Encoding:
Text File  |  1993-08-11  |  302 b   |  6 lines

  1. In this example, the typedef statement creates AGE as a synonym
  2. for int.  The variable current_age is defined with type AGE.
  3. Because AGE is a synonym for int, the value of current_age can be
  4. assigned to the int variable my_age.  You can also use typedef to
  5. create synonyms for user-defined types.
  6.