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 & out parameters?

Answers were Sorted based on User's Feedback



What is the difference between ref & out parameters?..

Answer / padam

An argument passed as ref must be initialized before passing
to the method whereas out parameter needs not to be
initialized before passing to a method.

Is This Answer Correct ?    8 Yes 0 No

What is the difference between ref & out parameters?..

Answer / satya

ref keyword is used while passing the parameters by reference.
out keyword is used while passing the parameters by out

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Sharp Interview Questions

How do I do a case-insensitive string comparison?

0 Answers  


how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.

0 Answers  


destructor, Dispose, Finalize - How they relate to each other

1 Answers   Synechron,


How many constructor can a class have?

0 Answers  


Explain how can I get around scope problems in a try/catch?

0 Answers  


Can you instantiate a struct without using a new operator in c#?

0 Answers  


Why objects are stored in heap in c#?

0 Answers  


How do I convert a string to an int in c#?

0 Answers  


What is the difference between User controls and Custom Controls?

0 Answers   Accenture,


What is a di class?

0 Answers  


in a town the percentage of total men is 52. the percentage of total literacy is 48. if total percentage of literate men is 35 of total population. write a program to find out the total no of illiterate men and women.

3 Answers   HCL,


What is difference between assembly and dll?

0 Answers  


Categories