Bitfields, carried over from C. Name
is 40 bits wide, Colour
is 24 bits wide. Your struct therefore has at least 64 bits. On my system 64 bits would be 8 bytes.
More Related Contents:
- How do I compare chars (or strings) using void functions, also comparing chars that were taken from a struct array
- can’t extract data from a structure array c++ [closed]
- What is this weird colon-member (” : “) syntax in the constructor?
- Single quotes vs. double quotes in C or C++
- What is the difference between these (bCondition == NULL) and (NULL==bCondition)?
- When were the ‘and’ and ‘or’ alternative tokens introduced in C++?
- A proper way to create a matrix in c++
- What are the distinctions between the various symbols (*,&, etc) combined with parameters? [duplicate]
- How to convert string to IP address and vice versa
- What is the default value for C++ class members
- what is “stack alignment”?
- Variable number of parameters in function in C++
- Passing array of structures to function c++
- When extending a padded struct, why can’t extra fields be placed in the tail padding?
- Difference between try-catch syntax for function
- Struct Constructor in C++?
- TMP: how to generalize a Cartesian Product of Vectors?
- too many initializers for ‘int [0]’ c++
- What does “for(;;)” mean?
- Can a C++ compiler re-order elements in a struct
- How to clone object in C++ ? Or Is there another solution?
- How can I use a custom type as key for a map in C++?
- Struct inheritance in C++
- default visibility of C++ class/struct members
- Purpose of a “.f” appended to a number?
- What is the meaning of `struct X typedef` vs. `typedef struct X`?
- What does ‘**’ mean in C?
- How to initialize a struct to 0 in C++
- Why isn’t “0f” treated as a floating point literal in C++?
- C++ Class or Struct compatiblity with C struct