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

Can a struct inherit from another struct or class in c#?

0 Answers  


Can we write class inside a class in c#?

0 Answers  


Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

1 Answers  


What is data types in c#?

0 Answers  


localization using windows c#

2 Answers  






What is singleordefault c#?

0 Answers  


Is overriding of a function possible in the same class?

0 Answers  


About delegates and events?

2 Answers   ADITI,


Can you create an instance of a static class?

0 Answers  


How do you declare a variable in c#?

0 Answers  


If all code is written in a try block and write a catch block with Exception type Exception .In that scenario will all the exceptions catched by that catch block? or any exceptions which will not be caught?

3 Answers   Honeywell,


What is polymorphism? pl explain practically rather than theoretical?

3 Answers  


Categories