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 / 405.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  637KB  |  2550x3300
Labels: binder | book | poster | reckoner
OCR: Bit Fields 405 Running the Program sizeof( struct empl SSN 567624256 Rate 50 Initi al WLF vested years servi The program consists of the functions main() and put empl () The function main) contains or intf) call to display the number of bytes occupied by struct It also contains calls to strcpy and assignment statements to initial- ize the structure. Finally, call to put empl displays the contents of the structure The function put aue displays the contents of the parameter with calls pri int Note 1:The declaration of struct empl contains two bit field members and three members that are not bit fields. The member vest ea is bit field that occupies one bit. The bit would be set to one to indicate that the employee vested in the retirement plan and cleared to indicate lack of vesting. Note 2 T ...