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...

Can we return two values from a function?

Answer Posted / dumb_dumb

Function always returns only one return value.
In other word, function cannot have a multiple return value.

The out or ref parameter can be used to trick the problem. However the return value still only one since Even the void function/method return 'null' value.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can abstract class be sealed?

925


What can be done with c#?

880


Explain the importance and use of each, version, culture and publickeytoken for an assembly.

993


What are some of the commonly used commands in sqlcommand?

947


Why constructor is used in c#?

950


What is a hashset c#?

1161


Why generics are used in c#?

1001


What is the use of protected in c#?

983


Define thread? Explain about multithreading?

1005


Show us in simple steps to create setup & deployment project for windows application?

1033


Can abstract class have parameterized constructor?

970


What is difference between singleordefault and firstordefault?

960


What is difference between an Structure and Class?

1170


What is the purpose of private constructor in c#?

1062


Is concurrent queue thread safe?

968