Lecture 14 - 2D Arrays and Structures

Lecture 14 - 2D Arrays and Structures - 14 2D Arrays and...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: 14 2D Arrays and Structures Oct. 31, 2006 Announcements 1. Assignment 2 is marked (fnally). 2. Midterm grades, exams, correct answers, your answers - all on-line. 3. A3 is being marked 4. A4 rolling alongCodeLog up to step 3. Last Time Modulus: % does division and returns the remainder Arguments Passed by Value copy oF argument made For the Function, you can change the copy, but not the original Last Time (cont.) Pass by reFerence: pointers and arrays pointers are dangerous & -gets an address (to pass to a Function) * -uses data at the address (used inside the Function) Pass-by-reFerence vs Return You should use return when returning a single value. You should use pass-by-reFerence when returning multiple values Passing Arrays Making a copy oF an entire array each time you pass it to a Function could use lots oF memory and take lots oF time....
View Full Document

This note was uploaded on 04/17/2011 for the course CIS 1500 taught by Professor Kramer during the Spring '06 term at University of Guelph.

Page1 / 3

Lecture 14 - 2D Arrays and Structures - 14 2D Arrays and...

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

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