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 a .exe extension files? How is it similar to .dll extension files?

0 Answers   Accenture,


What's c# ?

0 Answers  


Which one is trusted and which one is untrusted?

0 Answers  


what is a callback function?

4 Answers  


What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

0 Answers  






Can you override private virtual methods?

5 Answers  


What are the Types of assemblies that can be created in dotnet

0 Answers  


Is is possible to force garbage collector to run?

0 Answers  


Should I make my destructor virtual?

0 Answers  


Why cannot you specify the accessibility modifier for methods inside the interface?

0 Answers  


Explain Constructor and destructor?

0 Answers  


what are pointer types in c#

0 Answers   Cognizant,






Categories