can we assign null value to value type in c#?

Answer Posted / anirudh

YES. WE CAN !!!


use this:

int? var_x = null;

Is This Answer Correct ?    34 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between ienumerable and list?

526


Can the nested class access, the containing class. Give an example?

485


Is array thread safe c#?

490


Is string immutable in c#?

585


Where static variables are stored?

484






Define collections?

501


What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default

560


What is a float?

502


What does m mean in decimal c#?

504


what is the difference between interface and multiple interface?

550


What is meant by clr?

580


Why do we use anonymous method in c#?

509


Which of these string definitions will prevent escaping on backslashes in c#?

577


What is difference between new and override in c#?

463


how dot net compiled code will become platform independent?

533