Parameters and Arguments
As in Java, the same four steps apply on a function call as on a method invocation
Example: Consider execution of
#include <stdio.h>
void f (int x, int y) {
int tmp;
tmp= x; x= y; y= tmp; }
void main(void) {
int j= 17; int k= 42;
f(j, k);
printf(�j= %d, k= %d\n�, j, k); }
Previous slide
Next slide
Back to first slide
View graphic version