1
void swap(int *c, int *d) {
2
  int tmp = *c;
3
  *c = *d;
4
  *d = tmp;
5
};
6
 
7
int main() {
8
  int a = 10;
9
  int b = 20;
10
  swap(&a, &b);
11
  return (a);
12
};
13
 
 

Compiled in: 5ms
Executed in: 0ms