how to take array of characters as input in c++ code example Example: working with char and string c++ String and Char