I have the following C code.
struct values{
int a:3;
int b:3;
int c:2;
};
void main(){
struct values v={2,-6,5};
printf("%d %d %d",v.a,v.b,v.c);
}
When I execute the code, I am getting the following output:
2 2 1.
But output should be 2 -6 5
, right?
If I'm wrong please explain.