Can we return two values from a function?

Answers were Sorted based on User's Feedback



Can we return two values from a function?..

Answer / pramod

just use recursive function call...

Is This Answer Correct ?    2 Yes 8 No

Can we return two values from a function?..

Answer / rajani

No. not at all. well that's the main difference between
functions and procedures. A function can return one n only
one value. We can write only one return statement and only
only return type.

Is This Answer Correct ?    1 Yes 15 No

Post New Answer

More C Sharp Interview Questions

what is a constructor? What is a destructor?

0 Answers  


What is the difference between list and ilist in c#?

0 Answers  


What operators can be used to cast from one reference type to another without the risk of throwing an exception?

0 Answers  


What is wcf c#?

0 Answers  


can we declare a variable by name "this" in a class? Please explain?

3 Answers   IBM,


What is the value which is accepted by all data types ?

0 Answers   MCN Solutions,


What is generic collection in c#?

0 Answers  


What is dependency injection?

0 Answers  


Why do we need a finally block in try catch block while handling exceptions

4 Answers   IBM,


What are the important concepts in OOPS

5 Answers   Fulcrum Logic,


What is private variable?

0 Answers  


What are "class access modifiers" in C#?

0 Answers   Genpact,


Categories