What is the purpose of the following code snippet? #include…
What is the purpose of the following code snippet? #include void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; } int main() { int x = 10, y = 20; swap(&x, &y); printf(“x = %d, y = %d\n”, x, y); return 0; }
Read Details