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
Can constructor be overloaded in c#?
Is collection a data structure?
What is difference between an Structure and Class?
What is called method in c#?
Can you inherit from a sealed class?
How to add a readonly property in c#.net
How many types of constructors are there in c#?
What is a static field?
What is difference between throw and throws in c#?
What is threading in c# with example?
Explain the difference between passing parameters by value and passing parameters by reference with an example?
When do we generally use destructors to release resources?
Can constructor be protected?
Is static thread safe?
Where do I put dll files?