Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Ask a Question
What is Nullable Types in C#?
Home
C Sharp
What is Nullable Types in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
What is Nullable Types in C#?
c#-nullable
nullable-in-c#
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
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? mynullablevar = null;
Related questions
0
votes
Why to use “Nullable Coalescing Operator” (??) in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
c#-nullable
nullable-in-c#
0
votes
Null-coalescing assignment in C#
asked
Dec 8, 2019
in
Dot Net
by
Sinaya
c#-nullable
nullable-in-c#
0
votes
Nullable reference types in C#
asked
Dec 8, 2019
in
Dot Net
by
Sinaya
0
votes
what variable types can be assigned a value directly in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
What are the different types of constructors in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#constructor-types
#c-sharp-constructor-types
0
votes
What are the collection types can be used in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
collection-types
0
votes
Which are the loop types available in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
loop-types
c#-loop-type
0
votes
What are the three types of Generic delegates in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
generic-delegates-in-c#
generic-delegates
0
votes
What are the types of delegates in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
delegates-in-c#
0
votes
What are reference types in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
c#-reference-types
reference-types-c#
0
votes
What are value types in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
value-types-c#
c#-value-types
0
votes
List out two different types of errors in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
c#-errors
c#-error
c-sharp-errors
c-sharp-error
0
votes
Explain the types of comments in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
type-of-comments-in-c#
c#-comments
comments-c#
0
votes
Which of the following is correct about C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Which of the following is correct about C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
...