Downloaded 41 times





![Declaration as Variable
Kamus:
NamaArray : array [1..MaxSize] of TipeData
Contoh:
Kamus:
bil : array [1..5] of integer
NamaDosen : array [1..20] of string
Pecahan : array [1..100] of real](https://image.slidesharecdn.com/chapter2-staticarray-161018115234/75/Data-Structure-Static-Array-6-2048.jpg)
![Declaration as User-Defined
Kamus:
type
NamaArray = array [1..MaxSize] of TipeData
NamaVariabel_1:NamaArray
NamaVariabel_2:NamaArray](https://image.slidesharecdn.com/chapter2-staticarray-161018115234/75/Data-Structure-Static-Array-7-2048.jpg)
![Declaration as Constant
Kamus:
const
MaxSize = VALUE
type
NamaArray = array [1..MaxSize] of TipeData
NamaVariabel_1:NamaArray
NamaVariabel_2:NamaArray](https://image.slidesharecdn.com/chapter2-staticarray-161018115234/75/Data-Structure-Static-Array-8-2048.jpg)
![Declaration as Record
Kamus:
Const
maks_array = 5
Type
DMahasiswa = record
< nim,nama:string,
nilai :integer,
indeks :char >
endrecord
mahasiswa=array[1..maks_array] of DMahasiswa
mhs:mahasiswa](https://image.slidesharecdn.com/chapter2-staticarray-161018115234/75/Data-Structure-Static-Array-9-2048.jpg)






Static arrays are collections of data elements of the same type that can be accessed via indexes. They are declared in memory with a fixed size. Static arrays can be declared as variables, user-defined types, constants, or records. Common operations on static arrays include creation, traversal, searching, sorting, and destruction. Popular sorting algorithms for static arrays include merge sort, insertion sort, radix sort, quick sort, and shell sort.





![Declaration as Variable
Kamus:
NamaArray : array [1..MaxSize] of TipeData
Contoh:
Kamus:
bil : array [1..5] of integer
NamaDosen : array [1..20] of string
Pecahan : array [1..100] of real](https://image.slidesharecdn.com/chapter2-staticarray-161018115234/75/Data-Structure-Static-Array-6-2048.jpg)
![Declaration as User-Defined
Kamus:
type
NamaArray = array [1..MaxSize] of TipeData
NamaVariabel_1:NamaArray
NamaVariabel_2:NamaArray](https://image.slidesharecdn.com/chapter2-staticarray-161018115234/75/Data-Structure-Static-Array-7-2048.jpg)
![Declaration as Constant
Kamus:
const
MaxSize = VALUE
type
NamaArray = array [1..MaxSize] of TipeData
NamaVariabel_1:NamaArray
NamaVariabel_2:NamaArray](https://image.slidesharecdn.com/chapter2-staticarray-161018115234/75/Data-Structure-Static-Array-8-2048.jpg)
![Declaration as Record
Kamus:
Const
maks_array = 5
Type
DMahasiswa = record
< nim,nama:string,
nilai :integer,
indeks :char >
endrecord
mahasiswa=array[1..maks_array] of DMahasiswa
mhs:mahasiswa](https://image.slidesharecdn.com/chapter2-staticarray-161018115234/75/Data-Structure-Static-Array-9-2048.jpg)




