Google News
logo
C# - Quiz(MCQ)
When would a structure variable get destroyed?
A)
When it goes out of scope.
B)
When no reference refers to it, it will get garbage collected.
C)
Depends upon whether it is created using new or without using new.
D)
Depends upon whether we free it's memory using free() or delete().

Correct Answer :   When it goes out of scope.

Advertisement