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 parameters in c#?

0 Answers  


What does args mean in c#?

0 Answers  


What is the use of 0 in c#?

0 Answers  


Is void a class?

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,


Difference between direct type casting and using "as" keyword?

1 Answers   TCS,


Is constructor a static method?

0 Answers  


Explain ACID rule of thumb for transactions.

1 Answers  


What is the base class for array types?

0 Answers  


What is hashtable in c# with example?

0 Answers  


What are sorted lists?

0 Answers  


What is a constructor in c#?

3 Answers  


Categories