Write a C++ function that will accept a character array of at most 30 cells. Your function should return true if the string and its reverse are identical; otherwise the function should return false. For example, the string MADAM reads from left to right as from right to left.