Users Pricing

forum

Home Forums How to pass arrays using ref and out parameter – MindStick

How to pass arrays using ref and out parameter

Anupam Mishra 1791 09 Feb 2016
Hi Everyone,
I am working on arrays and i need to pass arrays using ref and out parameter in a function.my function are given below:
static void FillArray(ref int[] arr)
{
.......
}
Please can anyone give me a solution in both cases(ref and out parameter).

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md