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
Can you use foreach iteration on arrays in c#?
What are the advantages of using delegates in c#?
What is the size of a decimal?
What are indexers in c# .net?
What are the new features in c# 2.0?
Is it true that all c# types derive from a common base class?
What is data annotation in c#?
Explain how obfuscator works in .net
Why do we use public static void main in c#?
Can you declare a class or a struct as constant?
What is array and its types in c#?
Why are strings immutable in c#?
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
What is a deadlock lock?
Why do we still see so much non-oo code written in c# today?