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 console application with example?
What is a console?
What is void method?
What is a static property. Give an example?
What is a collection class in c#?
What is meant by enumerable in c#?
What is bitwise operator in c#?
What does type safety mean?
Which program construct must return a value?
What is difference between assembly and dll?
What are anonymous functions in c#?
What is difference between virtual and override in c#?
What is the purpose of a namespace?
What are synchronous and asynchronous operations?
What are native methods?