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
Are c# strings immutable?
What are the properties of string?
Why do we use static methods in c#?
What is an event in c#?
What is different between Boxing and Unboxing?
What is difference between array and list in c#?
What is difference between === and ==?
Is c# a backend language?
What is c# most used for?
How is method overriding different from overloading?
What is difference between throw and throws in c#?
What is delegates and events?
What does firstordefault mean in c#?
What is the use of functional interface?
What are the extension methods in c#?