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 you declare a field readonly?

942


Which is faster hashtable or dictionary?

977


What is polymorphism c# example?

938


What does type safety mean?

1077


How to move to a state-related codebase?

1544


What is base class in c#?

1003


Write down the c# syntax to catch an exception

940


If you donot specify an access modifier for a method, what is the default access modifier?

1044


What is the difference between protected and private?

928


Are structs faster than classes?

941


What are scriptable objects?

936


Why do we still see so much non-oo code written in c# today?

944


Write a sample code to write the contents to text file in c#?

942


Can constructor be protected?

900


What is the namespcae generally given to the webpage of the .NET Framework ?

1065