#include <stdio.h>
#include <stdlib.h>
void swap(int i, int j); //wrong example
int main(){
int i, j;
i = 5;
j = 9;
swap(i, j); //call by value
printf("i=%d j=%d\n", i, j);
system("pause");
return 0;
}
void swap(int i, int j){
int temp;
temp = i;
i = j;
j = temp;
}