```c struct { // take up 4 bits unsigned int x : 4; // take up only 6 bits unsigned

struct {
    // take up 4 bits
    unsigned int x : 4;

    // take up only 6 bits
    unsigned int y : 6;
} bitfield;
Was this page helpful?