Lect20ArraysTypes - Announcements Instructor: Nelson...

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

View Full Document Right Arrow Icon
Announcements Instructor: Nelson Padua-Perez (nelson@cs.umd.edu) Class Web Site: http://www.cs.umd.edu/class/fall2010/cmsc122/ No posting of code in the forum Check class announcements daily 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Reviewing One-Dimensional Arrays How do we define an array? How do we represent arrays? How can we access the elements of an array? What can we do with the elements of an array? Which iteration statement is frequently used with arrays? Fundamental loop you should remember for (k = 0; k < a.length; k++) { } where a is an array Arrays are created in a memory area called the heap Array variable holds address of array How are array elements accessed? We can create aliases to arrays via assignments Arrays are objects Object Entity that has values and operations (functions)
Background image of page 2
3 Passing Arrays to Functions Let’s review how we pass numbers to functions How we pass arrays to functions? Example:
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

Lect20ArraysTypes - Announcements Instructor: Nelson...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online