Question { Wipro, 48992 }
can we assign null value to value type in c#?
Answer
Nullable type is introduced in .NET 2.0. Before 2.0 it was
not possible to assign null to value types.
This was possible with the introduction of Generics in 2.0
and the it would be something like this...
System.Nullable
x = new System.Nullable;
or
int? salary = null (new type modifier in 2.0)