Skip to content
hengxin edited this page Nov 9, 2017 · 2 revisions

Declaration

typedef struct {
    double x;
    double y;
    double z;
} Point;

Point p1 = { 1, 2, 3 };
Point p2 = { .x = 1, .y = 2, .z = 3};
Clone this wiki locally