can we assign null value to value type in c#?
Answer Posted / yogesh
Cannot convert null to a value type.
So it is not possible to assign null to value type.
Value types include:
All numeric data types
Boolean, Char, and Date
All structures, even if their members are reference types
Enumerations, since their underlying type is always
Byte, Short, Integer, or Long
Reference types include:
String
All arrays, even if their elements are value types
Class types, such as Form
Delegates
Is This Answer Correct ? | 20 Yes | 10 No |
Post New Answer View All Answers
Explain About Iunknown interface Queue
What is the main purpose of delegates in c#?
What is Delegate and what is it used for ?
What is jagged array?
Can we overload indexer in c#?
What is an icollection in c#?
Which .gang of four. Design pattern is shown below?
Expalin the way you implement inheritance by using VB.NET/C#?
What is boolean conditions in c#?
Can constructor have return type c#?
What does console readline do?
Is 0 an unsigned integer?
Why do we need properties in c#?
What is the use of console?
How to install or uninstall a windows service?