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

List down the fundamental oop concepts?

0 Answers  


1)what is difference between char and varchar in sql server 2005 2) what is composite key and candidate key 3) what is temporary table and derived table 4) how to calculate difference between two dates

1 Answers   Wipro,


What are the differences between system.string and system.text.stringbuilder classes?

0 Answers  


What exactly happens when we debug and build the program?

0 Answers  


What is an expression in c#?

0 Answers  






In a single .NET DLL how many classes it contains?

0 Answers   Siebel,


What is a hash table c#?

0 Answers  


What is helper method in c#?

0 Answers  


What is a nested type. Give an example?

0 Answers  


Why multiple inheritance is not possible in c#

8 Answers  


Explain About .Net remoting

0 Answers   Digital GlobalSoft,


Why are mutable structs evil?

0 Answers  


Categories