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
Explain how can I get around scope problems in a try/catch?
Describe the process of “exception handling implementation” in c#?
What are the benefits of using the aggregate method in linq?
Differentiate between object pooling and connection pooling in c#?
Enlist all the components of an ado.net framework?
Is c# an array?
Why do we override in c#?
What is a strong name in c#?
What do you use c# for?
What are the types of class in c#?
What is a streamwriter in c#?
What is the default boolean value in c#?
How many types of polymorphism are there?
Are objects passed by reference in c#?
Can you create partial delegates and enumerations?