Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In Main function another function is there and to that
function if we pass string as parameter ,then that string
value is passed by value or reference type?

Answer Posted / parmjit

even if string is a reference type, whenever we pass it to
another function, it is passed as refrence-value to that
function function.

If the actual parameter is a string constant using this
refrence the called function cannot change the passed
string, because strings are constant values cannot be
modified.


If the actual parameter is a variable holding a referance
to a string object, even the the called function neither
change the passed string value nor change the referance
stored in the original passed parameter.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the working of serialization?

836


Is comparable a functional interface?

841


What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default

925


What are controls in c#?

897


Can the accessibility of a type member be greater than the accessibility of its containing type?

896


Why should I use interface in c#?

928


What is the default value of datetime in c#?

911


Explain manifest & metadata in c#.

924


Is a valid int value?

878


What is serialization in unity?

856


how to prevent a class from being inherited in c#.net?

906


So what makes your code really object-oriented #?

900


Is there an equivalent of exit() for quitting a c# .net application?

903


What is a generic class?

913


What is a callback c#?

947