public static void Main()
int[] numbers = new int[]{10, 20, 30, 40};
Console.WriteLine("--- Change reference/pointer/memory location");
Console.WriteLine($"Original: {string.Join(", ", numbers)}");
ChangeReference(numbers);
Console.WriteLine($"After: {string.Join(", ", numbers)}");
Console.WriteLine("--- Change content");
Console.WriteLine($"Original: {string.Join(", ", numbers)}");
Console.WriteLine($"After: {string.Join(", ", numbers)}");
static void ChangeReference(int[] nums)
nums = new int[]{1, 2, 3, 4, 5};
static void ChangeContent(int[] nums)