I have the following code and I need to initialize the XYZ struct. Please give me a way to do this.
struct Demo
{
int abc[10];
int reply_port;
};
struct XYZ
{
struct Demo dem[10];
int x;
int y;
struct Demo a;
struct Demo b;
struct Demo c;
} arr[100];
Demo1 is another struct that is available in other file. Please tell me an efficient way in how this struct XYZ can be initialized.
Thanks