#include #include // for the conversion/query functions #include // for the string functions using namespace std; const int MaxLen = 100; //This is the maximum length of the C string /* This function returns the number of punctuation characters in a given string * Punctuation characters are printable characters that are not letters, numbers or spaces * We iterate through the string and query character by character. * We use the ispunct function. This function returns true if the given character is a punctuation character. */ int countPunct(char st[])// { int count=0; //counter variable for(int i=0; i