import ctypes class A(ctypes.Structure): _fields_ = [("a", ctypes.c_int * 3), ("b", ctypes.c_int)] print A.b.offset
Standard input is empty
12
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!