can we assign null value to value type in c#?
Answer Posted / narayana
Yes We can Assign
A nullable int can store null. Nullable types in the C#
language can be constructed by specifying the question mark
after a value type in a declarator statement. The nullable
int can be specified with the syntax "int?".
Example:
int a=b=10;
int? c= null;
c=a+b
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is Wrapper class in dot net?
What is signature c#?
What is wrong with the sample program below?
Is php easier than c#?
What is immutable in C#?
Explain About web methods and its various attributes
What is a dynamic assembly?
How to force my .net app to run as administrator on windows 7?
what is the difference between a struct and a class in c#?
What is an interface class in c#?
What is the keyword used to prevent a class from being inherited by another class?
How more than one version of an assembly can keep in same place?
What .exe means?
Can we inherit two classes in c#?
Why are strings immutable in c#?