how many bits are created by name:number

hello

i want to ask how many bits are created when write this line


unsigned exponent:10;

is exponent locate a 10 byte from memory or 10 bits ????
It means that 10 bits out of however big unsigned int is (typically out of 32) are occupied by the value of exponent.]

See http://en.cppreference.com/w/cpp/language/bit_field for some detail
Topic archived. No new replies allowed.