C#
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?
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?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal YelveRank #178 · 13.6K reputationPosted Aug 8, 2022, 2:54 AM EDT