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
What are custom exceptions?
Is typeof c#?
What is the delegates in c#?
Can enum be null c#?
Explain inheritance in c#?
What is garbage collector and where should you use in .NET?
Explain about accessibility modifier 'protected internal'?
Does main have to be static c#?
Is string a primitive data type in c#?
Explain concurrency with aop?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
Can we override interface method?
What is ildasm.exe used for?
What is the main purpose of delegates in c#?
Which is better python or c#?