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
What is overriding in c#?
Does c# support const methods, properties, or events?
What is string method in c#?
What are the principles of delegation?
How to Show Message box in Metro Style App?
What is an example of a delegate?
Why do we need delegates?
What is parallel programming in c#?
What is a verbatim string literal and why do we use it?
What is the difference between list and arraylist in c#?
Can main method be final?
Is a char?
Why do we use partial class in c#?
Why do we Need of static class in c#?
Explain the steps to create satellite assembly?