23.10.2014 Views

STRUKTUR DATA

STRUKTUR DATA

STRUKTUR DATA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Mendefinisikan ukuran maksimum<br />

elemen larik sebagai konstanta<br />

Contoh :<br />

Const Nmaks = 100<br />

type Larikint : array[1..Nmaks] of integer<br />

P : LarikInt<br />

Cara menterjemahkan ke bahasa C :<br />

#define Nmaks 100<br />

typedef int Larikint[Nmaks+1];<br />

Larikint P;<br />

Halaman 16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!