Lecture 22

11/30/98


Click here to start


Table of Contents

Lecture 22

What is procedure?

What is procedure?

What is a local variable?

What is a local variable?

What is global variable?

What is global variable?

What is parameter?

What is parameter?

What is pass-by-value?

What is pass-by-value?

What is pass by reference?

What is pass-by-reference?

Visibility of global variable

Program pass-by-reference-vs-by-value

Program pass-by-reference-vs-by-value

Simulating for-loop with while loop

Procedure minimum of two numbers

Procedure minimum of two numbers

Write a program which reads characters up to a period. Then it should print out the number of a,b and neither a nor b characters that it saw.

PPT Slide

Rewrite the case statement as if-then-else-if

Rewrite the case statement as if-then-else-if

Boolean expressions

Home work

Author: Alex Iskold

Email: iskold@cs.nyu.edu

Download presentation source