Can we return two values from a function?

Answer Posted / abhinav kashyap

Using return statment, it is not possible to return more
than one value but if we use the Out parameters then we can
have return more than one value depanding upon how many
parameters u have given as Out Parameter.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between the Debug class and Trace class with its functionality?

520


What is difference between struct and class in c#?

448


What is generic and non generic collections in c#?

418


Why do we need singleton class in c#?

515


What is singleordefault?

490






What benefit do you get from using a primary interop assembly (pia)?

489


What is an int in c#?

499


Is string a primitive data type in c#?

480


What is data binding c#?

510


What is the advantage of singleton class?

455


what optimizations does the c# compiler perform when you use the /optimize+ compiler option?

568


What is the use of console?

462


What is difference between a type and class?

587


What is view model in c#?

445


What is constants in c#?

405