one-dimensional arrays

One-dimensional - its index in the group Once you locate a member of the array you can display its value using cout Declaration int A[4

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Arrays are sequence of memory location that can be used when called upon. When the memory is called upon, it is called elements of array. Every element has a specific position. The position of an item is called index. Based on this system of indexing, to locate a member of an array, use
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: its index in the group. Once you locate a member of the array, you can display its value using cout. Declaration: int A[4] = [100,125,150,175] Assignment: int A [4]; A[0] = 100 A[1] = 125 A[2]=150 A[3]=175...
View Full Document

This note was uploaded on 03/17/2011 for the course CS 263 taught by Professor Jim during the Spring '10 term at Grantham.

Ask a homework question - tutors are online