291 views
1 votes
1 votes
Please tell the output with explanation!

#include<stdio.h>
struct s
{
   unsigned a:5;
   unsigned b:5;
   unsigned c:5;
   unsigned d:5;
}v={1, 2};

main()
{
    printf("size of v = %d",sizeof(v));
    return 0;
}

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
2
iarnav asked Apr 18, 2017
676 views
Please kindly tell the full code with the use of sizeof() operator. Thanks!