Advertisement
andruhovski

Test

Oct 25th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     private static int[] a=new int[10];
  6.     public static void MethodA(int[] arr)
  7.     {
  8.         arr=new int[5];
  9.     }
  10.     public static void Main()
  11.     {
  12.         MethodA(a);
  13.         Console.WriteLine(a.Length);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement