I have a struct like this:
typedef struct { int a; int b; int c; int d; } Hello;
then I declare it in this way:
Hello hello[6] = {{0}};
Will initialize all members of each struct to 0.
That's not valid C. The universal zero initializer in C is {0}, not {}.
{0}
{}
Try something like this:-
This will initialize all the members of struct to 0.