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

Can constructor be overloaded in c#?

826


Is collection a data structure?

898


What is difference between an Structure and Class?

1056


What is called method in c#?

901


Can you inherit from a sealed class?

848


How to add a readonly property in c#.net

880


How many types of constructors are there in c#?

900


What is a static field?

852


What is difference between throw and throws in c#?

816


What is threading in c# with example?

857


Explain the difference between passing parameters by value and passing parameters by reference with an example?

880


When do we generally use destructors to release resources?

872


Can constructor be protected?

842


Is static thread safe?

826


Where do I put dll files?

960