Advertisement
WarPie90

Untitled

Mar 5th, 2017
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.19 KB | None | 0 0
  1.  
  2. procedure Foo(x:TIntegerArray);
  3. begin
  4.   x[1] := 3; //I just modified the array
  5. end;
  6.  
  7. var
  8.   x:TIntegerArray;
  9. begin
  10.   x := [0,0,0];
  11.   foo(x);
  12.   WriteLn(x[1]); //x[1] is now 3
  13. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement