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

what is the Difference between the public and private ?

0 Answers   Microsoft,


How will you get the different language strings?

0 Answers  


How does array sort work?

0 Answers  


Which is faster hashtable or dictionary?

0 Answers  


3. Describe the process of interact UI to BAL n DAL?

2 Answers   Mphasis,






Can I define my own exceptions?

0 Answers  


What is a static field?

0 Answers  


What?s an abstract class?

4 Answers   NIIT,


When should I use static in C#?

0 Answers   SwanSoft Technologies,


In object oriented programming, how would you describe encapsulation in c#?

0 Answers  


Can multiple catch blocks be executed?

4 Answers  


What do you mean by thread safe in c#?

0 Answers  


Categories