Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Arrays/XPL0/arrays.xpl0
Normal file
8
Task/Arrays/XPL0/arrays.xpl0
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
include c:\cxpl\codes;
|
||||
char A(10); \creates a static array of 10 bytes, pointed to by "A"
|
||||
char B; \declares a variable for a pointer to a dynamic array
|
||||
[A(3):= 14;
|
||||
B:= Reserve(10); \reserve 10 bytes and point to their starting address
|
||||
B(7):= 28;
|
||||
IntOut(0, A(3)+B(7)); \displays 42
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue