#include<stdio.h>
#include<stdlib.h>
int main() {
int a[3] = {1,2,3};
int b[3] = {4,5,6};
int tmp, i;
for (i = 0; i < 3; i++) {
if (a[i] != b[i])
tmp = a[i];
a[i] = b[i];
b[i] = tmp;
}
for (i = 0; i < sizeof(a)/sizeof(a[0]);i++)
printf("%d",a[i]);
printf("\n");
for (i = 0; i < sizeof(b) / sizeof(b[0]); i++)
printf("%d", b[i]);
printf("\n");
system("pause");
return 0;
}