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 you declare a field readonly?
Which is faster hashtable or dictionary?
What is polymorphism c# example?
What does type safety mean?
How to move to a state-related codebase?
What is base class in c#?
Write down the c# syntax to catch an exception
If you donot specify an access modifier for a method, what is the default access modifier?
What is the difference between protected and private?
Are structs faster than classes?
What are scriptable objects?
Why do we still see so much non-oo code written in c# today?
Write a sample code to write the contents to text file in c#?
Can constructor be protected?
What is the namespcae generally given to the webpage of the .NET Framework ?