Category: 

What Is an Array String?

Article Details
  • Written By: A. Leverkuhn
  • Edited By: Andrew Jones
  • Last Modified Date: 23 September 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
The atmosphere of Jupiter's moon Io collapses every time it is eclipsed by the planet.   more...

September 29 ,  2008 :  The Dow Jones Industrial Average experienced its largest one-day drop in history.  more...

An array string is one element in a collection of variables including character strings that is used in different kinds of computer programming. The array is defined as a sequence of variables that have the same name, but are uniquely identified by a secondary designation. Variables in the array share attributes. An array of strings is an sequence of variables that hold multiple characters, which are referred to as strings. An array string is one single string that is included in the array.

For those who don’t understand the use of string variables, it’s helpful to contrast these variables with others that hold numbers or values. For example, where a variable containing an integer might contain the number 1, a variable containing a string might contain the word, “hello.” Generally, the string variable is expressed with brackets or other punctuation around the word.

Computer programmers use array strings in various ways. Because the string variables in the array share attributes, programmers might frequently contrast one array string to another using specific array commands. The array string is also useful in a database, where programmers can change one of these elements without changing the others. For example, in a string array containing three names: “Mary,” “Sue,” and “Joe,” the user can change the third array string variable from “Joe” to “Robert” without disturbing the information nested in the other two array string variables.

Ad

In general, arrays are efficient ways to hold many corresponding bits of information. Apart from names, a string array can hold different text descriptors, from shapes and sizes to other properties like color, specific dimensions, or even value expressed in words rather than numbers. Arrays can also correspond to a set of visual icons in a computer interface, where users can click on each one to see one of the elements of the string array.

It’s important to note that syntax for a string array is different in each specific computer programming language. Using a string array is slightly different in a computer language like C++ than is in another language like Perl. Programmers need to understand the specific syntax of a program to effectively use string arrays in coding or programming. Those who are using software programs do not generally need to know about the string array at all, but understanding how these elements are manipulated by developers will help them to know more about the products that they rely on.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}