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

What are satellite assemblies?

713


What happens if a static constructor throws an exception?

687


What are the differences between static, public and void in c#?

748


What is generic delegate in c#?

624


What are handlers in c#?

708


When To use HashTable In C#

746


What is string programming language?

607


In a memory when you Box and Unbox a value-type what happens?

715


What is datacontract in c#?

653


How long does it take to get a loop recorder put in?

647


Define property in c#.net?

696


Are structs faster than classes?

704


What does static mean in c sharp?

790


What is virtual in c#?

649


Are c# strings immutable?

662