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 do you mean by delegates and explain different types of delegates?
What is readline c#?
What is the use of delegates in c#?
How do generics work in c#?
Describe the ways of cleaning up objects in c#.
Which framework is best for desktop application?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
Difference between value and reference type.
What is a nullreferenceexception?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
What is default value of decimal c#?
What is the execution entry point for a c# console application?
Explain About namespaces
What is expression tree with example?
Is nullable type c#?