Posts

Pertemuan ke1 - Array, Pointer, & Introduction to Data Structure - 2101629451 - Geraldus Tommy K.

ARRAY Array is a kind of data structure that can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. Multi-Dimensional Array A  multidimensional array  is an  array  containing one or more  arrays . PHP understands  multidimensional arrays  that are two, three, four, five, or more levels deep. *Theoratically no limit on how much dimension in an array. The only practical limits are memory size and compilers. Sorting Array Values int a [ 10 ] = { 3 , 4 , 7 , 6 , 5 , 1 , 2 , 8 , 10 , 9 }; //Array declaration size-10 int n = 10 ; //Temporary number for array size printf ( " \n\n Array Data : " ); //Printing message for ( int i = 0 ; i < n ; i ++ ) //Loop ...
Recent posts