Is string passed by reference in c#?



Is string passed by reference in c#?..

Answer / Punit Singh Malik

Yes, strings are passed by reference in C#, meaning changes made to a string through one instance will be reflected across all instances pointing to the same memory location.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the functionality of break and continue in Visual Studio?

2 Answers   JPMorgan Chase,


How Global.asax is used ?

1 Answers   Siebel,


What does typeof return c#?

1 Answers  


wt is namespace? wt is the use?

12 Answers  


What is Dispose method in .NET?

3 Answers  


What is difference between array and collection in c#?

1 Answers  


What is the difference between gettype and typeof in c#?

1 Answers  


What do you mean by shared assembly?

1 Answers   Accenture,


Can we have 2 main methods in c#?

1 Answers  


Why do we use dictionary in c#?

1 Answers  


List down the differences between “dispose” and “finalize” methods in c#.

1 Answers  


What does the parsefloat function do?

1 Answers  


Categories