how to globally initlailize a struct
snippet in c

how to globally initlailize a struct

user7959

struct Y {
    int r;
    int s;
    int t;
};

struct Y y = { .r = 1, .s = 2, .t = 3 };