Is string reference type / value type ?

Answer Posted / avisek

string is referrence type....
bcz there is no limitations of string means it can have variable length......thats why str[0],str[1],
string stores only the referrence to the value stored in it....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between do and while loop?

642


What is stringbuilder c#?

697


Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).

670


Why is c# used?

653


How to move to a state-related codebase?

1159


What is the use of partial methods?

768


What is helper method in c#?

662


windows c# using datagridview in edit form sql server

3783


Explain about CTS?

734


How to assign Null value to Var?

738


Does c# support multilevel inheritance?

642


What is use of a HashTable in .NET?

895


What is attribute and reflection in c#?

665


What is difference between gridview and form view?

741


What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

768