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
Is c# pass by reference?
State two different types of access modifiers.
What is the difference between out and ref in c#?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
What is difference between ilist and list in c#?
Can mvc be used for desktop applications?
What is a linked list c#?
How do you read an Excel sheet in C#?
What is meant by unicode characters?
What is #region in c#?
What are the uses of delegates in c#?
Does the system.exception class have any cool features?
What is the difference between a variable and a literal?
How do I unload an application domain?
What is console readkey ()?