/* * struct.c */ struct foo { int x, y; char a, b; }; int main(int argc, char *argv[]) { struct foo p1; p1.x = 12; p1.y = 21; p1.a = 'h'; p1.b = 'i'; }