struct Data Structure

1
2
3
4
5
6
struct foo{
  unsigned bar0:1;
  unsigned bar1:1;
  unsigned bar2:1;
  unsigned bar3:2;
};


When a struct data type is defined and there are ":" placed behind the members, is that there to allocate that one bit of the unsigned space in memory is the foo->bar1 and then 2 bits are used for foo->bar3.
Last edited on
Thank you
Topic archived. No new replies allowed.