how to return morethan one value using out parameter in c#.net ;
For Example : public int show(out int []a)
{
int []a={1,2,3,4,5};
return a[];
}
we have to print all the values without using the
Console.WriteLine statement;



how to return morethan one value using out parameter in c#.net ; For Example : public int show(out ..

Answer / nilesh

printfn "%A" [ 1 .. 5 ];;

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More C Sharp Interview Questions

Can you specify nested classes as partial classes?

0 Answers  


Why do we use static class in c#?

0 Answers  


Can we inherit static class in c#?

0 Answers  


Difference between StackPanel and RelativePanel ?

0 Answers   HCL,


Can mvc be used for desktop applications?

0 Answers  


What is difference between throw and throws in c#?

0 Answers  


What is the usage of Enumeration in C# Programming and is it good to use or not ?

0 Answers   MCN Solutions,


Can multiple catch blocks be executed?

4 Answers  


Is datetime nullable c#?

0 Answers  


Contrast between an interface and abstract class?

0 Answers   Siebel,


Explain metadata in c#.

0 Answers  


What is difference between for and foreach loop in c#?

0 Answers   MCN Solutions,


Categories