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 / 389.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  635KB  |  2550x3300
Labels: book | crt screen | encyclical | poster | reckoner
OCR: Using Structures with Arrays and Pointers 389 inventory[] price cur inv fers assign it pos stions tions Figure 7-1 gn The expression inventory references the address of the first structure The expression left- inven orv accesses the third structure (with index 2in the array The expression cise inventory[2] cur inv accesses the cur inv member of the structure in the third cell. The expression inventory [2] id[3 accesses the fourth character in the id member of the structure in the third cell. Arrays of structures can be initialized by nesting the initial values for each We structure as list elements in the braces enclosing the initial values for the array. For opera- example struc- struct auto part inventory[4] "3bJ 4F 35 These "4tH -2J" 8 "89J 3K will declare the array inventory and initia ...