¿Cuál es el resultado de la siguiente función?
public void Swap(ref int x, ref int y) {
int temp = x;
x = y;
y = temp;
}
int a = 5;
int b = 10;
Swap(ref a, ref b);
¿Cuál es el resultado de la siguiente función?
public void Swap(ref int x, ref int y) {
int temp = x;
x = y;
y = temp;
}
int a = 5;
int b = 10;
Swap(ref a, ref b);