Array

Páginas: 4 (866 palabras) Publicado: 5 de agosto de 2010
20 de agosto olimpiadas del Jaime roldos aguilera

ARRAY SIMPLE

En lenguajes de programación , una matriz es una manera de almacenar varios elementos (como números enteros ). These items musthave the same type (only integers, only strings , ...) because an array can't store different kinds of items. Estos artículos deben tener el mismo tipo (sólo enteros, sólo cuerdas , ...), ya que unamatriz no puede almacenar diferentes tipos de elementos. Every item in an array has a number so the programmer can get the item by using that number. Cada elemento en una matriz tiene un número por loque el programador puede obtener el elemento mediante el uso de ese número. This number is called the index . Este número se llama el índice. In some programming languages, the first item has index 0,the second item has index 1 and so on. En algunos lenguajes de programación, el primer elemento tiene el índice 0, el segundo elemento tiene el índice 1 y así sucesivamente. But in some languages, thefirst item has index 1 (and then 2, 3, ...). Sin embargo, en algunas lenguas, el primer elemento tiene un índice de 1 (y luego 2, 3, ...).
When the programmer creates an array, he/she must give thesize of the array. Cuando el programador crea una matriz, se le debe dar al tamaño de la matriz. This is the number of items that can be stored in the array. Este es el número de elementos que puedenser almacenados en la matriz. If the programmer wants to store more items then he/she must create a new array. Si el programador desea almacenar más elementos entonces él / ella debe crear una nuevamatriz. This is because the size of an array can't be changed. Esto es porque el tamaño de una matriz no se puede cambiar.

array en C
En el lenguaje de programación C , las matrices se pueden crearde esta manera:
int array[5]; Array [int 5];

Esto crea un array de enteros y se puede almacenar 5 números enteros. The programmer can now store integers in the array by doing: El programador...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Arrayan
  • array
  • array
  • Array
  • Array
  • array
  • array
  • LINE ARRAY

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS