Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Why does struct size changes with enum bitfield in struct (standard C)

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.12 sec, absolute running time: 0.15 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 0,31 sec 
edit mode |  history
option a    size struct       : 12
            offset 2nd element: 1
            offset 3rd element: 8
option b    size struct       : 10
            offset 2nd element: 1
            offset 3rd element: 8

    
                
λ
.NET NoSQL database for rapid development