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 do we need generics in c#?

896


What is class in oops with example in c#?

881


What is the reason behind the invention of c#?

1068


Can datetime be null c#?

842


How many types of delegates are there in c#?

915


Define a class and an object?

941


What is Implementation inheritance and interface inheritance?

955


What is cli in c#?

901


What is the xml document structure?

878


Explain the concepts of cts and cls(common language specification).

935


How does dll hell solve in .net?

936


What is gac? What are the steps to create an assembly and add it to the gac?

881


Why do we need dependency injection in c#?

890


Which are access modifiers available in c#?

917


What is an escape sequence?

893