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

Answer Posted / amit kumar sharma

//Use this
int? intNull = null;

Is This Answer Correct ?    64 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can create an array with non-default values?

512


How can I check the type of an object at runtime?

528


Can abstract class have private constructor c#?

512


What is dictionary class in c#?

476


What is anonymous method in c#?

466






What is the difference between the debug class and trace class? Documentation looks the same.

509


What is strong data type in c#?

485


What are the benefits of using generics in c#?

482


What is the difference between continue and break statement?

521


Which technology is best for desktop application?

436


Is system a class in c#?

496


Why References are stored on heap and variables on stack?

509


Define boxing and unboxing in c#?

478


What is a linq in c#?

482


How many dimensions can an array have?

471