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


Please Help Members By Posting Answers For Below Questions

Can extension methods access private members?

496


How do you declare a variable in c#?

498


Why hashtable is thread safe in c#?

463


What are data types in C#?

548


Is unboxing an implicit conversion?

519






What is eager loading in c#?

446


Are c# destructors the same as c++ destructors?

541


What is ado c#?

511


update data in an xml file which resides in solution itself, using silverlight 4.0

1354


Explain the advantage of using system.text.stringbuilder over system.string?

448


What is msil, and why should developers need an appreciation of it if at all?

537


What do you mean by casting a data type?

523


What is lazy in c#?

485


What is the difference between struct and class in c#?

461


What is global namespace in c#?

461