Program showing usage of c strings in C++