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

Why are strings immutable in c#?

880


What is the difference between and xml documentation tag?

948


What is an inheritance ?Give an example in which inheritance is used?

1032


How to update the gui from another thread in c#?

974


Does c# support multiple class inheritance?

1090


Is c# int immutable?

904


What is deferred execution in c#?

899


Is c# still popular?

867


What is global asax in c#?

922


Define collections?

942


Why we use get set property in c#?

932


What is delegate in c# interview questions?

975


Can we set image Source dynamically using C# in WPF application?

1050


Can abstract class instantiated c#?

890


Which sorting algorithm is best?

978