evaluation strategy examples
- by Boontz
Assuming the language supports these evaluation strategies, what would be the result for call by reference, call by name, and call by value?
void swap(int a; int b)
{
int temp;
temp = a;
a = b;
b = temp;
}
int i = 3;
int A[5];
A[3] = 4;
swap (i, A[3]);