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 / 402.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  697KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: 402 Chapter Structuring the Data 7.4 Bit Fields allows different members ofa structure to be packed into one prrm of memory with construct called bit field This construct is one that allows the programmer to have direct access to the bits as well as having some control over the memory allocation in a program. bit field included in structure definition, the number of bits that bit field should occupy 1c specified Theoretically. the compiler will pack as many bit field members as possibie into single word of memory The following declaration struct bi uns .aned uns gned bitvar declares structure with two members Both members are bit fields The member will occupy 4 bits; the member -b will occupy 2 bits. Bit fields are declared by following the name of the member with colon and the number of b ...