Recap: Procedures
Need mechanisms for:
int Fact( N )
int N ;
{
int F ;
F = 1 ;
while ( N > 0) {
F = F * N ;
N = N - 1 ;
}
return ( F ) ;
}
Passing arguments
Local storage
Returning result
Linking control
Previous slide
Next slide
Back to first slide
View graphic version