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 / niks

I think yes.. Function can return multiple values.. It's
not good practice.. but C# allows you.. Consider following
example

int Val;
GetValue(Val);

bool GetValue(out int Val)
{
Val = value;
return true;
}

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

904


Describe the process of “exception handling implementation” in c#?

967


What are the benefits of using the aggregate method in linq?

1003


Differentiate between object pooling and connection pooling in c#?

984


Enlist all the components of an ado.net framework?

865


Is c# an array?

892


Why do we override in c#?

873


What is a strong name in c#?

1386


What do you use c# for?

911


What are the types of class in c#?

1073


What is a streamwriter in c#?

927


What is the default boolean value in c#?

952


How many types of polymorphism are there?

938


Are objects passed by reference in c#?

989


Can you create partial delegates and enumerations?

1014