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
list the steps in code compilation in c#?
Explain polymorphism in c# with a simple example?
What is the and operator in c#?
Is xml tags are case sensitive?
How does aspect oriented programming work?
What are the different types of literals in c#?
What is an object pool in .net?
How more than one version of an assembly can keep in same place?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
What is delegate in c#?
Explain different properties of object oriented systems.
What are the advantages of clr procedure over t-sql procedure?
What is generic method in c#?
How do you prevent a class from being inherited in c#?
What is the console on a mac?