Home / DeveloperSection / Interviews / Types in C#
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
Can you answer this question?
Manish Kumar
In c# types are divided ino 2 broad categories
Value types- int,float,double,structs,enums etc
Reference types=interface Class delegates arrays etc
By default value types are no nullable .To make them nullable use?
Int=0( I is non nullable so I cannot be set to null i=null will generate compiler error
Int ? j=o(j is of nullable int so j=null is leagal
You have need login or register for voting of answers or question.
Manish Kumar
29-Nov-2017In c# types are divided ino 2 broad categories
Value types- int,float,double,structs,enums etc
Reference types=interface Class delegates arrays etc
By default value types are no nullable .To make them nullable use?
Int=0( I is non nullable so I cannot be set to null i=null will generate compiler error
Int ? j=o(j is of nullable int so j=null is leagal