Struct - wyjaśnij wyjście:

Mam następujący kod C.

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); 
}

Kiedy wykonuję kod, otrzymuję następujące dane wyjściowe:

2 2 1.

Ale wyjście powinno być2 -6 5, dobrze?

Jeśli się mylę, proszę wyjaśnić.

questionAnswers(3)

yourAnswerToTheQuestion