Quick actions

cmd+k|ctrl+k

Navigation

Languages

结构体位字段

Snippet info

Language

C

Visibility

public

Author

993700804

Created

2019-09-26T14:00:29Z

Updated

2019-09-26T14:01:58Z

#include <stdio.h>

typedef struct
{
	int a:2;
	int b:2;
	int c:1;
}test;
int main (void)
{
    test t;
    t.a = 1;
    t.b = 2;
    t.c = 1;
    printf("%d,",t.a);
    printf("%d,",t.b);
    printf("%d,\n",t.c);
    
    return 0;
}
INFO