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 does break do in loop?

481


Can abstract class be sealed?

470


Can var be null c#?

469


What does type safety mean?

558


What is the use of command builder?

525






What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?

589


What can you do as a .net developer?

488


Is string a data type in c#?

481


Why are strings immutable in c#?

482


How assembly versioning in .NET prevent DLL Hell problem?

504


What is array and arraylist?

528


Is multiple inheritance possible in c#?

547


How do I open the console window?

563


What is the difference between firstordefault and first?

465


What is assembly c#?

467