Hi,
Can somebody please explain , printing with structure variable also working.
int main( void ) {
struct bitfs {
unsigned char a:4;
unsigned int b:5;
};
struct bitfs bf = {15,31};
struct bitfs2 {
unsigned char a:4;
unsigned int b:5;
}bf2 = {15,31};
printf("a= %u \n", bf.a);
printf("b= %u \n", bf.b);
printf("a2= %u \n", bf2.a);
printf("b2= %u \n", bf2.b);
printf("a2= %u \n", bf2);/*how is this also working*/
return 0;
}