Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test22
//fpc 3.0.4 {Linear pointers' 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
Tri 1.0
test25
Fast program
sandogh 1
Homework 5
Урок 3 задача 3
P170815A - Cálculo da massa de um tanque
Mat
Record as a procedure argument
zadanye 3 г