#include <stdio.h>typedef struct{int a:2;int b:2;int c:1;}test ;void main(){test t;t.a = 1;t.b = 3;t.c = 1;printf("%d\n",t.a);printf("%d\n",t.b);printf("%d\n",t.c);}
1 回答

qq_遁去的一_1
TA貢獻(xiàn)1725條經(jīng)驗(yàn) 獲得超8個(gè)贊
typedef struct
{
unsigned int a:2;
unsigned int b:2;
unsigned int c:1;
}test ; //改成無(wú)符號(hào)數(shù)試試
- 1 回答
- 0 關(guān)注
- 149 瀏覽
添加回答
舉報(bào)
0/150
提交
取消