Skip to Main Content
Introduction to Computational Modeling Using C and Open-Source Tools
book

Introduction to Computational Modeling Using C and Open-Source Tools

by Jose M. Garrido
November 2013
Intermediate to advanced content levelIntermediate to advanced
461 pages
12h 1m
English
CRC Press
Content preview from Introduction to Computational Modeling Using C and Open-Source Tools
Chapter 8
Arrays
8.1 Introduction
An array stores multiple values of data with a single name and most program-
ming languages include facilities that support arrays. The individual values in the
array are known as elements. Many programs manipulate arrays and each one can
store a large number of values in a single collection.
To refer to an individual element of the array, an integer value or variable known
as the array index is used after the name of the array. The value of the index repre-
sents the relative position of the element in the array. Figure 8.1 shows an array with
13 elements. This array is a data structure with 13 cells, and each cell
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal

Publisher Resources

ISBN: 9781482216783