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's the difference between a method and a procedure?

485


Explain boxing and unboxing in c#?

511


If c# destructors are so different to c++ destructors, why did ms use the same syntax?

500


What are modifiers in c#?

471


What are logical operators in c#?

528






Can a class or a struct have multiple constructors?

544


What are variables in c#?

499


What is concrete class in c# with example?

471


Difference between value and reference type.

513


What is a multicast c# delegate?

518


What is serializable in c#?

500


What are the classes contained in a single .NET DLL ?

508


What is the correct way of declaring an xml namespace?

473


What is tryparse c#?

496


What is console application with example?

498