fork download
  1. class Program
  2. {
  3. static byte[] array;
  4. static void func(ref byte b)
  5. {
  6. System.Console.WriteLine(array[2]);
  7. b = 5;
  8. System.Console.WriteLine(array[2]);
  9. }
  10.  
  11. public static void Main()
  12. {
  13. array = new byte[16];
  14. func(ref array[2]);
  15. }
  16. }
  17.  
  18.  
Success #stdin #stdout 0.03s 36960KB
stdin
Standard input is empty
stdout
0
5