{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

notes5 - Arrays New topic ARRAYS Reading for this week...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
New topic: ARRAYS Reading for this week: CHAPTER 6
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Arrays Structures of related data items Array Group of consecutive memory locations Same name and type When defining arrays, specify Name Type of array Number of elements Examples: int b[ 3 ]; float myArray[ 27 ]; Defining multiple arrays of same type int c[ 5 ], x[ 12 ]; a[0] -12 a[1] 23 a[2] 4 a[3] 15 a[4] -1 a[5] 53 a[6] 0 a[7] -7
Background image of page 2