What is the default value of string and integer in DotNet?

 Posted by Rajesh_Kumar on 1/20/2014 | Category: C# Interview questions | Views: 2404 | Points: 40
Answer:

Default value of string is Null and integer is 0.
If we do not assign any value at the time of declaration of string and integer variables then by-default string variables be assigned as Null and integer variables be assigned as 0 at run-time.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response