Passing null value to int

When we declaring a int variable the value of that variable become 0.


Example


int a;


The value of a is zero.To assign null value we can use below code


Int? a=null;


Nullable<int>a=null;

Ebook Download
View all
Learn
View all