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 orm in c#?
How do you mark a method obsolete?
What Is The Smallest Unit Of Execution In .net?
What is instantiating a class in c#?
Can list contain duplicates c#?
What is a Managed Code??
Is array a list?
what is the difference between interface and multiple interface?
What is inheritance in csharp?
What is list collection in c#?
Can we declare class as protected?
Why is xml called extensible?
What do you mean by a windows process in regards to memory allocation?
What is an interface class in c#?
When should I use static in C#?