Say I have this struct...
My simple tests indicate this...Code:struct SomeStruct
{
int a;
int b;
int c;
int d;
};
...is equivalent to this...Code:int main()
{
SomeStruct ss{0};
...
return 0;
}
Is this kosher??? In my research I found reference to the 2nd, but not the first, i.e., ...Code:int main()
{
SomeStruct ss = {0};
...
return 0;
}
Code:ss{0}