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 the difference between asp net and c#?
What are annotations in c#?
Define Virtual folder?
What is the difference between out and ref in c#?
What is the purpose of the integer parse method the decimal parse method?
Is it true that all c# types derive from a common base class?
What is a callback c#?
What are the 3 different types of arrays?
What does private void mean in c#?
What are namespaces, and how they are used?
What is static class in C#?
What is the use of command builder?
how to stored and retrive video in Sql server using asp.net c#......?
When Should You Call The Garbage Collector In .net?
Write down the c# syntax to catch an exception