Question: Edit question in C write a program that checks if two strings are anagrams. A string is an anagram of another string if the letters
Edit question in C write a program that checks if two strings are anagrams. A string is an anagram of another string if the letters in the first string can be rearranged to form the second string. For example army and Mary are anagrams because the letters in army can be rearranged to form Mary. Use arrays only basic(no flags or gets) Main function can only declare vars or call functions Hints Don't forget that ou can add to and subtract from characters 'B' - 'A' is 1 2 + 'A' is 'C' test case Example 1 Please enter the first word: MaRy Please enter the second word: arMY MaRy is an anagram of arMY Example 2 Please enter the first word: dog Please enter the second word: god dog is an anagram of god Example 3 Please enter the first word: bob Please enter the second word: bobs bob is NOT an anagram of bobs Example 4 Please enter the first word: aap Please enter the second word: pap aap is NOT an anagram of pap -max limit 20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
