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 is the difference between ref and out in c#?



What is the difference between ref and out in c#?..

Answer / Ram Saheli

ref is a pass-by-reference parameter, meaning it references the original variable passed as an argument. out is also a pass-by-reference parameter, but unlike ref, it must be assigned before it's used and it can only appear as a return value or in method declarations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a static class in c#?

1 Answers  


What do you mean by a windows process in regards to memory allocation?

1 Answers  


What is the difference between proc. Sent by val and by sub?

1 Answers  


can you allow a class to be inherited, but prevent the method from being over-ridden?

1 Answers   Siebel Systems,


What is float in unity?

1 Answers  


List down the differences between public, static and void keywords?

1 Answers  


Give some examples for built in datatypes in c#?

1 Answers  


What is returned if you pass the value 12.34 to the parsefloat () function?

1 Answers  


What are properties in C#?

1 Answers   UGC Corporation,


Define strong name in c#?

1 Answers  


What is serialization in dot net?

1 Answers  


f i give input like 1,1,4,5,6,1,2,5,4,1,2, then output should be like : 1-4, 2-2, 4-2, 5-1, 6-1 which means 1 occurs 4 times, 2 occurs 2 times like so.

7 Answers  


Categories