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 difference between association, aggregation and inheritance relationships?

865


Why do we need escape characters?

834


What is the implicit name of the parameter that gets passed into the set method/property of a class?

871


What is dictionary class in c#?

880


What is the difference between Decorator and Adapter pattern?

907


how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com

1868


What is code verification?

921


Explain about Oops concept

901


If dll and exe files are same it means you can deploy both the files in gac?

879


What is the difference between // comments, /* */ comments and /// comments?

800


Are private members inherited in c#?

917


How to move to a state-related codebase?

1474


How does split work in c#?

840


What is the use of flag in c#?

887


What does protected internal access modifier mean?

1035