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 is use of hashtable in c#?
In .NET which is the smallest unit of execution?
Does c# have primitives?
What is difference between string and string builder?
What is difference between dynamic and var in c#?
What is method overriding in c#
What is an extension method in c#?
What is the difference between a field and a property in c#?
Why is c# a good programming language?
Why do I get a security exception when I try to run my c# app?
What is an assembly in .net?
How do you implement thread synchronization in c#?
write a c# program add two matrix with input number ?
What does console writeline do?
What is the difference between values and reference types?