You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
180 B
14 lines
180 B
2 years ago
|
#include<stdio.h>
|
||
|
|
||
|
void swap(int a, int b) {
|
||
|
int t = a;
|
||
|
a = b;
|
||
|
b = t;
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
int a = 3, b = 4;
|
||
|
swap(3, 4);
|
||
|
printf("%d %d\n", a, b);
|
||
|
return 0;
|
||
|
}
|