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

How many bytes is a char c#?

0 Answers  


Structs are not reference types. Can structs have constructors?

0 Answers  


What is the use of New Keyword

15 Answers  


Is string reference type / value type?

56 Answers   Accenture, Microsoft, Siemens,


Explain briefly the difference between value type and reference type?

0 Answers   Accenture,






Why singleton pattern is used in c#?

0 Answers  


What do you mean by streamreader/streamwriter class in c#?

0 Answers  


What namespaces are necessary to create a localized application?

2 Answers   Rolta, Siebel Systems, Visual Soft,


You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?

0 Answers  


What is the difference between malloc () and new?

0 Answers  


What?s the implicit name of the parameter that gets passed into the class? set method?

1 Answers  


Is c# and .net same?

0 Answers  


Categories