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 is difference between private and protected in c#?

494


Can we declare class as protected?

541


What is thread.sleep()?

518


What is difference between events and delegates?

495


What is the main purpose of xml?

481






How do I format a string in c#?

482


Is null empty or whitespace c#?

505


How do I calculate relative time?

506


What are strings in c#?

493


What is the and operator in c#?

495


What is data reader in c#?

602


What is the base class in .net from which all the classes are derived from?

512


Name some string escape sequences in c#.

572


Is arraylist faster than linkedlist?

499


What is global asax in c#?

526