eComputerBay

Computer Bay
Login | Register Build Your PC
Build UR PC  
New Used Refurbished
 USD ($)    Skype Connection    Skype Connection
Buy, Sell & Promote Computers World Over

Product Search Bar

  Computer Dictionary : Array
 

Welcome to the eComputer Bay's Computer Dictionary - the free online dictionary of computer and technology terms. The goal of the Computer Dictionary is to not just define computer terms, but explain them as well.

Definitions of computer terms are helpful, but explanations with examples are even better. eComputer Bay contains hundreds of computer and technology terms, all with detailed explanations.

Use the Search Bar Below To Get Computer Definations And To Check out All the Terms Simply leave the Computer Term Blank...-



Computer Term

1. Array

An array is a data structure that contains a group of elements. Typically these elements are all of the same data type, such as an integer or string. Arrays are commonly used in computer programs to organize data so that a related set of values can be easily sorted or searched.

For example, a search engine may use an array to store Web pages found in a search performed by the user. When displaying the results, the program will output one element of the array at a time. This may be done for a specified number of values or until all the values stored in the array have been output. While the program could create a new variable for each result found, storing the results in an array is much more efficient way to manage memory.

The syntax for storing and displaying the values in an array typically looks something like this:

arrayname[0] = "This ";
arrayname[1] = "is ";
arrayname[2] = "pretty simple.";

print arrayname[0];
print arrayname[1];
print arrayname[2];


The above commands would print the first three values of the array, or "This is pretty simple." By using a "while" or "for" loop, the programmer can tell the program to output each value in the array until the last value has been reached. So not only do arrays help manage memory more efficiently, they make the programmer's job more efficient as well.



 
 



Free Online Computer Dictionary

Copyright © eComputerBay.com All rights reserved. Reproduction in whole
or in part in any form or medium without written permission is prohibited.
Usage of this web site is subject to terms and conditions.
eComputerBay on
© eComputerBay - (2007-2018)