Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test22
//fpc 3.0.4 {Linear 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} i:integer; begin New(p); p^.info:=1; p^.sled:=Nil ; writeln('initial value of info ',p^.info:2); for i:=2 to 3 do begin New(q); q^.info:=i ; q^.sled:=p ; p:=q ; q:=Nil ; Dispose(q); end ; writeln('consequent values of the "info" ',p^.sled^.sled^.info:2,' ',p^.sled^.info:2,' ',p^.info:2 ); Dispose(p); end.
run
|
edit
|
history
|
help
0
Tableau
test
Hello World
Tinh tong
Вычисление площади фигуры, ограниченной осью абцисс и функцией
Kutman
Mengubah desimal ke biner
Funcion: numero perfecto
P170808B
Подсчёт количества единичных битов в десятичном числе от 0 до 15