c related doubt here ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

c related doubt here ?

#include <stdio.h> struct { int b1: 1; int b2: 2; }bits; int main() { printf("%ld",sizeof (bits)); return 0; } what does this code mean ? and how the output is 4?

25th Jun 2020, 2:52 PM
NIK
NIK - avatar
1 Answer
25th Jun 2020, 3:10 PM
Ipang