Interviews - C# Corner

Vivek Kumar
What is Nullable Types in C#?
By Vivek Kumar in C# onFeb 08 2016
  • Samatha Reddy
    Mar, 2017 16

    Value types can not store the null values,nullable feature added in c#2.0.now onwords we can able to add null values to value types. ex: int x=null; \\invalid int? x = null; \\ valid

    • 1
  • Ayappan Alagesan
    Feb, 2017 12

    mostly value types cannot be assigned as null.(Eg:int a =null) To break this c# implemented null-able types so that we can assign value types as null.(Eg : int? a) this specifies a might be null

    • 0
  • Vivek Kumar
    Feb, 2016 8

    Variable types does not hold null values so to hold the null values we have to use nullable types. So nullable types can have values either null or other values as well.Eg: Int? a= null;

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS