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...

What are the two keywords used to pass a variable by
reference in c#?

Answer Posted / sreekanth m

Two keywords are "ref" and "out".

the difference between them are: In the case of "ref", the
passed argument should be initialized first whereas
for "out", its not mandatory.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is call back method?

1032


Explain how do I get deterministic finalization in c#?

934


Why would you use a class property in c#?

918


What is dll file in c#?

974


What does the keyword “virtual” declare for a method or property?

958


What is the difference between returning iqueryable vs ienumerable?

972


Is c# a keyword?

922


Define an escape sequence, name few strings in escape sequence?

942


What is overloading with example?

925


What is an icollection in c#?

900


Do loops c#?

898


How do you create dlls in .NET

1055


What is a template class?

1020


Are arrays immutable c#?

1052


What is windows form in c#?

1028