#include <algorithm>
#include <iostream>
int main(){
char a[20]="car" ;
char b[20]="hotel";
std::cout << "before swap:" << a << ":" << b << std::endl;
std::swap(a, b);
std::cout << "after swap:"<< a << ":" << b << std::endl;
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKXsKICAgIGNoYXIgYVsyMF09ImNhciIgOwogICAgY2hhciBiWzIwXT0iaG90ZWwiOwogICAgc3RkOjpjb3V0IDw8ICJiZWZvcmUgc3dhcDoiIDw8IGEgPDwgIjoiIDw8IGIgPDwgc3RkOjplbmRsOwogICAgc3RkOjpzd2FwKGEsIGIpOwogICAgc3RkOjpjb3V0IDw8ICJhZnRlciBzd2FwOiI8PCBhIDw8ICI6IiA8PCBiIDw8IHN0ZDo6ZW5kbDsKfQo=