Q:

how to globally initlailize a struct

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

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

New to Communities?

Join the community