What will be the output of below code?
int character_count = "Dot Net-Funda".Length;

 Posted by vishalneeraj-24503 on 3/13/2014 | Category: C# Interview questions | Views: 1960 | Points: 40

Output will be 13.Because Length also count spaces,hyphen or any special characters from within string.So it will count all the characters.Here,the output will be 13.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response