CMPSC 201 Class #6 Lecture
(if time) Discuss the Ch. 6
demo programs
- Demo Program #1 - the use of void
functions (functions that do not return a value). One void function has a
parameter and the other does not.
- Demo Program #2 - the use of a
function that does return a value but that does not have any parameters
- Demo Program #3 - the use of functions
and a global variable (which is dangerous and usually inappropriate.)
- Demo Program #4 - the use of two
functions