Can we return two values from a function?

Answer Posted / srinivas.r

Function should have only one return statement,whereas
using out parameter its possible to send more than on value.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you convert a value-type to a reference-type?

630


What is c# used for?

698


Are classes passed by reference in c#?

658


What is verbatim string?

677


Explain async and await?

889


Is c# scripting language?

665


What is the data type for bit in c#?

696


What is literal control

758


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

779


What is the difference between static and private constructor?

691


Whats an assembly? Describe the importance of assembly?

689


What is a view? What is the use of it?

771


How many digits are in an integer?

621


Explain how do I convert a string to an int in c#?

692


What is the execution entry point for a c# console application?

724