63. Pointer-i

Question.5

A developer writes a swap function:

void swap(int a, int b) {
   int temp = a;
   a = b;
   b = temp;
}

int x = 10, y = 20;
swap(x, y);
printf("%d %d", x, y);

What is the output?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!