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
What is a console application in c#?
What is the use of return in c#?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
Can a string be null c#?
How do I convert a string to an int in c#?
What is the difference between protected and private?
What is event delegate in c#?
What is a static field?
Why we use get set in c#?
what are the different ways a method can be overloaded?
What do you mean by saying a "struct is a value type"?
Do loops in c#?
Is c# used for any core features of windows vista?
What are the uses of delegates in c#?
what is IFormatable