#include #include using namespace std; bool checkAnagrams(char st1[], char st2[]) { int i, l1 = strlen(st1), res=0; if(l1 != strlen(st2)) return false; for(i=0; i>s1>>s2; if(checkAnagrams(s1, s2)) cout<<"The given two strings are anagrams of each other\n"; else cout<<"The given two strings are not anagrams of each other\n"; return 0; }