Kizspy | Question: 29
(Choose 1 answer)
Assume we have a function such as:
void swap(int a, int b){
int t = a;
a=b;
b=t;
" What is the problem with a and b after executing the swap (a, b) function?
A. a and b do not change values.
B. cannot execute the swap(a,b) function.
C. a has the old value of b, and b has the new value of t.
D. a and b change values for each other;