C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//My code 2018/07/18 23:07
/*Bit field*/
struct {
unsigned int height;
unsigned int width;
}state1; //(note1)
struct{
unsigned int height : 1;
unsigned int width : 1;
}state2; //(note2)
//end
/*Structures*/
typedef struct Books{
char title[30];
char author[20];
int price;
} Book;
int main() {
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run