6
Answers

Memory allocation for reference type variable

Leo Qiao

Leo Qiao

Nov 26
413
1

1.Declaring a non nullable reference type variable:
Someclass v;
will it allocate a memory to store the reference value(it is 0), which refers to null?

Declaring a nullable reference type variable:
Someclass? v;
2.will it do the same thing as above or no any memory allocated at all?

Answers (6)