Can we return two values from a function?
Answer Posted / abhinav kashyap
Using return statment, it is not possible to return more
than one value but if we use the Out parameters then we can
have return more than one value depanding upon how many
parameters u have given as Out Parameter.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Are multiple data types stored in System.Array?
What is the use of delegates in c#?
When should you use generics?
What is sqlcommandbuilder c#?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
Why do we need generics in c#?
Is double a decimal?
How can you force derived classes to provide new method implementations for virtual methods?
What is an inheritance in c#?
Why var is used in c#?
Write one code example for compile time binding and one for run time binding? What is early/late binding?
What is nameof c#?
What are native methods?
What is static class in C#?
Explain how do you directly call a native function exported from a dll?