Erik Movsesyan

Erik Movsesyan

  • NA
  • 62
  • 5.9k

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

Aug 7 2022 8:09 PM
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)