|
|
|
|
|
- Example 1: Calculating the dimension of an array
- Example 2: Resizing a dynamic array
Example 1: Calculating the dimension of an array The following example is used to check the size of an array. The size of the array to check is a variable. PROCEDURE CheckArr(ArrName) I is int FOR I = 1 TO Dimension(ArrName) IF ArrName[I] = 0 THEN RESULT False END RESULT True
Example 2: Resizing a dynamic array This example is used to resize a dynamic array. MyArr is array dynamic of 5 by 3 int ... // Resize the array Dimension(MyArr, 8, 6)
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|