| What is the use of Nullable Type in c#
I have tried to put null value in int but i got comiple time error. I have tried below syntax for that
int i=null
So overcome this issue c# introduce Nullable type in C# 2.0 version. From now we can assign null value to this types as gievn below example
Nullable < int> i = null;
In above we have define int with nullable data type here correct range values will also be applied plus additional null value.
for int range is -2147483648 to 2147483647 and null value also be possible.
| | |