C# Programming - Functions and Subroutines - Discussion

Discussion Forum : Functions and Subroutines - General Questions (Q.No. 12)
12.
How many values is a function capable of returning?
1
0
Depends upon how many params arguments does it use.
Any number of values.
Depends upon how many ref arguments does it use.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Anindita said:   8 years ago
I think the answer is E.

We can return multiple values from a function using the following 3 approaches:
Reference parameters.
Output parameters.
Returning an Array.
Returning an object of class/struct type.
Returning a Tuple.

Nirmal R said:   1 decade ago
Function is capable of returning only one value..it may be int,double,byte or it may be a refernce type(obj)

Tipu said:   1 decade ago
We can return multiple value from C# method if we use.

out keyword during passing parameters.

John said:   1 decade ago
What about the out keyword ?

Post your comments here:

Your comments will be displayed after verification.