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;

Answer Posted / nilesh

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

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are custom exceptions?

530


Is typeof c#?

534


What is the delegates in c#?

507


Can enum be null c#?

519


Explain inheritance in c#?

540






What is garbage collector and where should you use in .NET?

513


Explain about accessibility modifier 'protected internal'?

539


Does main have to be static c#?

486


Is string a primitive data type in c#?

502


Explain concurrency with aop?

516


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

544


Can we override interface method?

525


What is ildasm.exe used for?

530


What is the main purpose of delegates in c#?

507


Which is better python or c#?

458