#include <stdio.h> #include <memory.h> typedef struct bitstruct { int b1:5; int :2; int b2:2; }bitstruct; int main(int argc, char *argv[]) { bitstruct b; memcpy(&b,"EMC Examination",sizeof(b)); printf("%d,%d\n",b.b1,b.b2); return 0;
}
阅读全文(2738) | 回复(0) | 编辑 | 精华 | 删除
|