how to return morethan one value using out parameter in ;
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 ; 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

Hai, I want to open a new form while the previous form is hiding or closing. I tried this with using MDI.I created one form like ParentForm.placed one button control.when clicked one that it opend new form like ChildForm.When i set the property of ChildForm to Maximize,but the ParentForm button control also appearing on the childform. so plz help me how to hide parentform controls(hide parentform while it is childform opened) thanq..

1 Answers  

Why multiple Inheritence is not used in C#?

8 Answers   Symphony,

How do you inherit from a class in C#?

3 Answers   Visual Soft,

int i = 1; int j = 1; System.Console.WriteLine(i == j); System.Console.WriteLine(i.ToString() == j.ToString()); System.Console.WriteLine((object)i == (object)j); Give the sample code above, what is the output to the console?

5 Answers  

give an example for suspending, resuming, and stopping a thread ?

1 Answers   GCI,

what are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

1 Answers  

Wats the diff between sealed class and private class in inheritance

7 Answers   iSoft,

How do you ensure the assembly created in c# is interoperable with

4 Answers   IBM,

How to make a class not inheritable other than sealed?

3 Answers  

difference between managed code and unmanaged code ?

3 Answers  

Where does the dispose method lie and how can it be used to clean up resources?

2 Answers   TCS, Wipro,

Explain constructor.

7 Answers   Wipro,