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 / 387.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  745KB  |  2550x3300
Labels: binder | book | daybook | reckoner
OCR: Operations on Structures 387 type uses the and return printf( 0 thours is at sp. \n" &emp Loyee2 hours The program framework is simple In the function main () two variables of type struct empl are defined: the remainder of the code consists of pri intf calls. Note1 Again, the declaration of the structure appears above any functions in this source file Therefore any functions in the file would be able access if Often structure declarations like this one would be placed in header file which would be included in the program source file with #inc lude preprocessor directive. nemory Note 2: The sizeof struct emp] i8 displayed. Then the memory loca- tion of each of the structure variables displayed This demons strates that both the sizeof() and address operator can be used with structures. Note ...