struct states
{
float v, x;
};
struct
{
struct coeffs c1;
struct states s1;
} cands;
main()
{
// A:
cands.s1 = (struct states){ };
// B:
cands.s1 = (struct states){ 0 };
}
Microsoft compiler complains about A (syntax error
), but works fine with B. GCC didn't complain about A.
Which one is right, A or B?
Are A and B the same?