-= ArrayS =-
As we all know that array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.The data 1,data 2,data 3,data 4,this is placed inside the array billy where it is performed.the illustration of this what we call billy in arrays is like what we see in the Excel,there are rows and columns.Where each blank panel represents an element of the array, that in this case are integer values of type int. These elements are numbered from 0 to 4 since in arrays the first index is always 0, independently of its length. we can access the value of any of its elements individually as if it was a normal variable, thus being able to both read and modify its value. In creating arrays,The New clause must specify the type name, followed by parentheses, followed by braces, {}. The parentheses do not represent a call to an array constructor. Instead, they indicate that the object type is an array type. The braces supply initialization values. The compiler requires the braces even if you are not supplying any values. Therefore, the New clause must include both the parentheses and the braces, even if they are empty.
-= An array of ten elements: =-
Each item in an array is called an element, and each element is accessed by its numerical index. As shown in the above illustration, numbering begins with 0. The 9th element, for example, would therefore be accessed at index 8. each element maps to a unique memory location (that is, no two entries in the array occupy the same memory locations) and (2) the mapping is consistent. That is, a given element in the array always maps to the same memory location. So what you really need is a function with two input parameters (row and column) that produces an offset into a linear array of sixteen memory locations. each element maps to a unique memory location (that is, no two entries in the array occupy the same memory locations) and (2) the mapping is consistent.
Thursday, February 5, 2009
Subscribe to:
Post Comments (Atom)
1 comment:
pasagad rni xa og answer. . haha. .
Post a Comment