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

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

New topic: ARRAYS Reading for this week: CHAPTER 6
Image of page 1

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

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
Image of page 2