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
Can abstract class be sealed?
What can be done with c#?
Explain the importance and use of each, version, culture and publickeytoken for an assembly.
What are some of the commonly used commands in sqlcommand?
Why constructor is used in c#?
What is a hashset c#?
Why generics are used in c#?
What is the use of protected in c#?
Define thread? Explain about multithreading?
Show us in simple steps to create setup & deployment project for windows application?
Can abstract class have parameterized constructor?
What is difference between singleordefault and firstordefault?
What is difference between an Structure and Class?
What is the purpose of private constructor in c#?
Is concurrent queue thread safe?