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 / 407.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  691KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: Bit Fields 407 Cautions with Bit Fields We mentioned previously that programs using bit fields may not be portable This into 19 because bit fields must be stored sequentially in words of memory, and some computer systems store them from left to right while others store from right to left. ofthe This makes source code that accesses the bits by position, as with bit mask, other potential portability problem. with The address operator cannot be pasn with bit fields so that location of the fields in memory cannot be ascertained. Similarly, pointer cannot be assigned to point to a bit field member of structure. Both restrictions occur because bit num- field S nou required to start on boundary of a byte or word and therefore may not be able to be addressed The method of storing the bit fields in ...