Can we return two values from a function?
Answer Posted / dumb_dumb
Function always returns only one return value.
In other word, function cannot have a multiple return value.
The out or ref parameter can be used to trick the problem. However the return value still only one since Even the void function/method return 'null' value.
Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What are satellite assemblies?
What happens if a static constructor throws an exception?
What are the differences between static, public and void in c#?
What is generic delegate in c#?
What are handlers in c#?
When To use HashTable In C#
What is string programming language?
In a memory when you Box and Unbox a value-type what happens?
What is datacontract in c#?
How long does it take to get a loop recorder put in?
Define property in c#.net?
Are structs faster than classes?
What does static mean in c sharp?
What is virtual in c#?
Are c# strings immutable?