#include <stdint.h> #include <stdio.h> #include <stdlib.h> void swap(int *p1, int *p2) { printf("a = %d", *p2); printf(" b = %d", *p1); } int main() { int x,y; scanf("%d %d", &x, &y); swap(&x, &y); return 0; }
Test Cases
Test Results
Input
10 20
Expected Output
a = 20 b = 10