#include<cstdio> #include<algorithm> using namespace std; int main() { char a[2][5]= {{'A','B','C','\0','\0'},{'a','b','c','d','\0'}}; swap(a[0],a[1]); printf("%s\n%s",a[0],a[1]); return 0; }