fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. private static void ChangeArray(int[] array)
  6. {
  7. for(int i = 0; i < array.Length; ++i)
  8. {
  9. array[i] = 2*i;
  10. }
  11. }
  12. public static void Main()
  13. {
  14. int[] test = new int[10];
  15. ChangeArray(test);
  16. System.Console.WriteLine(test[9]);
  17. }
  18. }
Success #stdin #stdout 0.04s 23904KB
stdin
Standard input is empty
stdout
18