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

Answer Posted / shihafath wazeer

correct declaration for a nullable integer is as follows

Nullable<int> i = null;

or

int? j = null;

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between il and dll ?

531


How many types of constructors are there?

510


Define Final Class in C#

548


Why do we need serialization?

439


What is the difference between ref and out parameters in c#?

460






How main method is called in c#?

517


What is difference between struct and class in c#?

474


Why is hashset faster?

491


What are the benefits of using the aggregate method in linq?

505


Does c# replace c++?

625


How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?

623


Explain the features of an abstract class in net.

502


What is the difference between and xml documentation tag?

522


What is c# windows form application?

499


What do you know about device context?

521