1
Answer

when declaring a struct type, do the fileds get initialized to default

struct  bb {

    public int v = 7;
    int l;


}

//main method

bb test;

when I say   bb test;  do the fields get initialized to their default values or not?

Answers (1)