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 reference parameter?
what is out parameters?
what is difference these two?

Answer Posted / sarun p.t

out is used only to get output from a function.
it means that we cannot give any input using an out
parameter. Whatever value we assign to an out parameter
before calling to a function will be worthless, we need to
assign a value in the called function to our out parameter
before its first usage and if no usage we need to assign a
value before control leave the function.(out can be passed
to function while uninitialized)

ref parameter is used for both input and output. The only
thing is we need to assign a value before its first usage.
ref parameter must be initialized before passing to a
function.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is namespace in oops?

856


What is static noise?

857


How do I register my code for use by classic com clients?

837


Howmany five tracing levels in System.Diagnostics.TraceSwitcher? Why they are using?

962


Can properties be private in c#?

843


What is virtual class in C#?

938


Is c# and c sharp same?

804


How does aspect oriented programming work?

902


how dot net compiled code will become platform independent?

891


What are properties in c#. Explain with an example?

846


What is task parallel library?

956


Explain the difference between proc. Sent by val and by sub?

874


How many bytes is an int in c#?

879


Can I do things in il that I can't do in c#?

870


Major difference between Basic httpbinding and WShttpbinding?

995