char* zigzagMerge(const char *s1, const char* s2)
{
/* create and return a new c-string by merging (putting in one)s1 and s2 in zigzag form.
Example, zigzagMerge of “abc” and “defgh” will be “adbecfgh”
*/
}
bool isAnagram(const char *s1, const char* s2)
{ /* returns true if s1 and s2 contain same distinct charactersapearing same number of times in both s1 and s2 otherwise returnsfalse That is, this function returns true if s1 and s2 arepermutations (re-arrangements) of same characters */ }
//Test zigzagMerge function
cout << endl;
char *s3 = zigzagMerge(s1, s2);
cout << “The zigzag merge of ” << s1 << ” and” << s2 << ” is
PayPal Gateway not configured
PayPal Gateway not configured