cps6-111025Handout - function After the call to the...

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

View Full Document Right Arrow Icon
CompSci 6 Introduction to Computer Science October 25, 2011 Prof. Rodger Announcements • No reading or RQ for next time • Apt-three due Thursday • Today – More on apts – More on parameters Passing parameters to functions • Parameter: in definition • Argument: in use • Questions: – What if the name of the parameter is same as the name of the argument? – What happens to a variable when it is sent to a
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function? After the call to the function? Mutable/immutable • Mutable – Lists, sets • Immutable – Numbers, strings, tuples • What happens to mutable and immutable objects when you pass them as arguments? • How does one change the value of a number/string/tuple by using a function? • Classwork!...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online