Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Allocate and use a simple array
private static void UsingSimpleArrays()
{
Console.WriteLine(nameof(UsingSimpleArrays));
for (int i = 0; i < 20; i++)
{
LocalUseOfArray(i);
}
Console.WriteLine();
Console.WriteLine();
}
private static void LocalUseOfArray(int i)
{
int[] arr = new int[ARRAYSIZE];
ShowAddress($"simple array {i}", arr);
FillTheArray(arr);
UseTheArray(arr);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment