Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
test22
//fpc 3.0.4 {Poiners structure} program test22; {pointer to variable} type PtrType=^BaseType ; BaseType=record info:integer; sled:PtrType end ; {pointer type} var p,q:PtrType;{pointer variable is static (!) variable} begin New(p); p^.info:=1; p^.sled:=Nil ; writeln('initial value of info ',p^.info:2); New(q); q^.info:= 2 ; q^.sled:=p ; p:=q ; q:=Nil ; Dispose(q); writeln('values of first and second info ',p^.sled^.info:2,' ',p^.info:2 ); Dispose(p); end.
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Random Numbers
проверка числа на отсутствие возрастающих и убывающих четвёрок
basketball_player_training
Calculatrice 1.0
Thao Vi
JONES
Pokemon2
zadanye 4
Huong11a2@
Определение стенки с максимальной высотой
Please log in to post a comment.