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 collections and what is generics

4 Answers   Bally Technologies,


What are Indexers in C#?

0 Answers   SwanSoft Technologies,


Why do we need generics?

0 Answers  


How does c# generics and c++ templates compare?

0 Answers  


What do you mean by stack and heap in c#?

0 Answers  






What are the steps to make an assembly to public?

0 Answers  


What is the difference between Abstract and Interface?

22 Answers   Agile Software, FER, HCL, Sys Universe,


What is yield c#?

0 Answers  


what is accessspecifier and explation each with example?

3 Answers  


What is static classes in c#?

0 Answers  


What is array and arraylist?

0 Answers  


please exaplain gridview and what are the process available for it. how to add the row number automatically? is it possible to add child controls ?

2 Answers  


Categories