docs
[mirrors/Programs.git] / c / binary.c
1 #include <stdio.h>
2
3 typedef struct {
4 unsigned a:1;
5 unsigned b:1;
6 unsigned c:1;
7 unsigned d:1;
8 unsigned e:1;
9 unsigned f:1;
10 unsigned g:1;
11 } bbyte;
12
13 int main() {
14 unsigned char c = 10;
15 struct bbyte *bb;
16 bb = (bbyte *) &c;
17 //printf("%d%d%d%d%d%d%d%d",)
18 printf("%d\n", bb->a);
19 }
This page took 0.273248 seconds and 4 git commands to generate.