Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test19
//fpc 3.0.4 {dynamic variable p^ is determined nowhere (!)} program test19; {pointer to variable} type t=1..2 ;{new ordinal type} Pt=^t ;{pointer type} var p:Pt;{pointer variable is static (!) variable} a:t;{static variable "a"} begin a:=2; p:=@a; {pointer var is static (!) variable} writeln('direct access',a:2);{direct access through static variable "a"} writeln; writeln('non direct access',p^:2);{non direct access through dynamic (nondirect) variable} end.
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
вариант 6, номер 1
Task 1
test26
6
C:\Users\skava\Documents\Паскаль
Бассейн-7
zad27-notoptimal
Code1
Homework 1
nomer5
Please log in to post a comment.