1 2 3 4 5 6 7 8 9 10 11 12
#include <stdio.h> #include <stdlib.h> typedef struct { int x, y; } Point; int main(int argc, char *argv[]) { Point p = {10, 20}; printf("Point: (%d, %d)\n", p.x, p.y); return 0; }