15.07.2013 Views

C Programming Untuk Pascal Programmer Tujuan - cs.unsyiah.ac.id.

C Programming Untuk Pascal Programmer Tujuan - cs.unsyiah.ac.id.

C Programming Untuk Pascal Programmer Tujuan - cs.unsyiah.ac.id.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

epeat<br />

until (stop kond);<br />

do {<br />

Loop Repeat<br />

} while (kond ulang);<br />

Inggriani Liem- Pelatnas I TOKI di ITB<br />

Januari 2007<br />

Alokasi/Dealokasi<br />

(* <strong>Pascal</strong> *)<br />

TYPE<br />

Elmt= record<br />

I:integer;<br />

next:^Elmt;<br />

end;<br />

new(P);<br />

dispose (P);<br />

Inggriani Liem- Pelatnas I TOKI di ITB<br />

Januari 2007<br />

/* Bahasa C */<br />

typedef struct<br />

telmt * adres;<br />

typedef struct<br />

telmt {int I;<br />

adres next;}elmt;<br />

P=(adres)malloc<br />

(sizeof (elmt));<br />

free(P);<br />

23<br />

24

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

Saved successfully!

Ooh no, something went wrong!