









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
asdfasdfbaksjdbfjablewbflabsk;dnfa sdkfbasndbajdsbfklabd
Typology: Study Guides, Projects, Research
1 / 17
This page cannot be seen from the preview
Don't miss anything!
Data komposit Array Matakuliah : T0026/Struktur Data Tahun : 2005 Versi : 1/
n i
void isi_array (int b[ ], int n) { int i; for (i=0; i<n; i++) b [i] = i10; } void main( ) { int bil [7], i; isi_array (bil, 7 ); ubah_array (bil, 7); }*
**void cetak_array (int b[ ][N]) void display (int **data) { …data[i][j]… } void main() { int *data; data = new int [m]; // SET UP THE ROWS for (j = 0; j < m; j++) data[j] = new int [n]; // SET UP THE COLUMN …data[i][j] …
(^) Contoh potongan program array: (^) … (^) char LeftMost(char S[]) (^) { return(S[0]); }; (^) char RightMost(char S[]) (^) { return(S[Len(S)-1]); }; (^) void main() (^) { char MyString[MaxLen); (^) … (^) printf(“Leftmost elemen :%c”,LeftMost(MyString)); (^) printf(“Rightmost elemen :%c”,RightMost(MyString)); (^) … (^) };