Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
15
Task/Memory-allocation/COBOL/memory-allocation.cobol
Normal file
15
Task/Memory-allocation/COBOL/memory-allocation.cobol
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
PROGRAM-ID. memory-allocation.
|
||||
|
||||
DATA DIVISION.
|
||||
WORKING-STORAGE SECTION.
|
||||
01 based-data PIC X(20) VALUE "Hello, World!"
|
||||
BASED.
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
*> INITIALIZED sets the data item to the VALUE.
|
||||
ALLOCATE based-data INITIALIZED
|
||||
DISPLAY based-data
|
||||
FREE based-data
|
||||
|
||||
GOBACK
|
||||
.
|
||||
3
Task/Memory-allocation/Icon/memory-allocation.icon
Normal file
3
Task/Memory-allocation/Icon/memory-allocation.icon
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
t := table() # The table's memory is allocated
|
||||
#... do things with t
|
||||
t := &null # The table's memory can be reclaimed
|
||||
Loading…
Add table
Add a link
Reference in a new issue