CP SU Q15

0. Assuming that bit-fields are accommodated from right to left and word size is 16-bits
Consider the declaration
static struct {
&emsp: unsigned a : 5;
&emsp: unsigned b : 5;
&emsp: unsigned c : 5;
&emsp: unsigned d : 5;
&emsp: } v = (1, 2, 3, 4);
Consider the declaration
struct wer {
&emsp: unsigned a : 5;
&emsp: unsigned : 0;
&emsp: unsigned b : 3;
&emsp: unsigned : 0;
&emsp: unsigned c : 2 ;
&emsp: unsigned : 0 ;
&emsp: } v;
The storage needed for v is

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *