program pointer; uses crt; type ptr= ^integer; var p: integer; x : integer; procedure tambah (a,b:integer; c:ptr); begin c^:= a+b; end; begin tambah(10,5, @p); writeln(p); readln; end.
Berikut Hasil Outputnya :
program pointer; uses crt; type ptr= ^integer; var p: integer; x : integer; procedure tambah (a,b:integer; c:ptr); begin c^:= a+b; end; begin tambah(10,5, @p); writeln(p); readln; end.
No comments:
Post a Comment