If I have this struct:
typedef struct MyStruct
{
int type1;
char *type2;
char type3[CHARS_AMOUNT];
} MyStruct;
What would be the difference between following initialization:
option 1:
int main(int argc, char *argv[])
{
MyStruct someObjects[5] = {};
}
option 2:
int main(int argc, char *argv[])
{
MyStruct someObjects[5] = {NULL};
}