Vidyalelo
C# Programming · Q192

Classes and Objects in C Sharp

Programming · C# Programming · question 192

Q192

When does a structure variable get destroyed?

A.
When no reference refers to it, it will get garbage collected
B.
Depends on whether it is created using new or without new operator
C.
As variable goes out of the scope
Answer
D.
Depends on either we free its memory using free() or delete()

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board