Question 3 - C# nullable variables


Ahmed omar
Thursday, 11 March 2021 1:30 PM

(2) Answers

C# 2.0 introduced nullable types that allow you to assign null to value type variables. You can declare nullable types using Nullable<t> where T is a type. Nullable<int> i = null; A nullable type can represent the correct range of values for its underlying value type, plus an additional null value.





Answers

Adel Sabour
Thursday, 11 March 2021 6:09 PM

New answer for test


Ahmed omar
Thursday, 11 March 2021 5:02 PM
Please check this: 

C# 2.0 introduced nullable types that allow you to assign null to value type variables. You can declare nullable types using Nullable<t> where T is a type. Nullable<int> i = null; A nullable type can represent the correct range of values for its underlying value type, plus an additional null value.


s