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 an assembly in .net?
Why hashtable is thread safe in c#?
how to sort an array in c#
What is difference between hashtable and dictionary in c#?
Which of the following operations can you not perform on an ado.net dataset?
What is dll file in c#?
Is null or empty in c#?
Is the following code legal?
What is the difference between system.text.stringbuilder and system.string?
How do you use nullable?
explain Garbage collector’s functionality on unmanaged code
Why do we need to serialize data?
Is c# good for web development?
What are the applications of c#?
What are extender provider components?