C ++ program which counts different palindromic characteristics of a string .
#include <bits/stdc++.h> NEW_LINE using namespace std ; const int MAX_STR_LEN = 1000 ; bool P [ MAX_STR_LEN ] [ MAX_STR_LEN ] ; int Kpal [ MAX_STR_LEN ] ;