Check out example codes for "how to globally initlailize a struct". It will help you in understanding the concepts better.

Code Example 1

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

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

Learn ReactJs, React Native from akashmittal.com