home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_07 / 380.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  706KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: 380 Chapter Structuring the Data members of the structure The declaration of a member of a structure looks ver much like variable declaration For example, the declaration of the named ic appears as char id[ID SIZE inside the braces The member named idis an array of 8 chars This structure has three members: pri ice, and cur inv These members represent the identification, the price, and the number of items in inventory for an automobile part Each member has been given type that fits the nature of one piece of data about an auto part The dec claration above "tells the compiler what the programmer means by a struct auto part describes the structure but does not declare any vari- ables The identifier auto part is an optional tag When tag included, pair of words struct auto part can be used else ...