English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

In computer science an array is a data structure consisting of a group of elements that are accessed by indexing. In most programming languages each element has the same data type and the array occupies a contiguous area of storage. Most programming languages have a built-in array data type.

In other words, an array is a list of integers or characters (elements) that u must declare in the program before u can use them....


Hope that Helped

2007-11-25 05:31:00 · answer #1 · answered by Anonymous · 0 0

Arrays are typically allocation of contiguous memory. Each element is right next to the next element.

Linked lists, on the other hand, are typically allocated with pointers to the next allocation of memory for each object. Each object can be anywhere in memory.

How you create an array depends on the language. In many languages, the word "new" is used. Search for "allocate an array" under your favorite language to learn how to allocate an array. Be sure to distinguish between declaration and allocation.

2007-11-25 13:25:42 · answer #2 · answered by Skeptic 7 · 0 0

fedest.com, questions and answers