Question: Code should be in C++ In this lab, you will be practicing using [ ] and indexing to access individual characters in a C-string. Remember

![practicing using [ ] and indexing to access individual characters in a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f452bcca02b_99666f452bc5e9a5.jpg)



Code should be in C++
In this lab, you will be practicing using [ ] and indexing to access individual characters in a C-string. Remember that a C-string variable is just an array of elements of type char. Use this fact to write a program that takes two words and determines if the two words are anagrams of each other or not. Two words are anagrams if they contain the same letters (include how frequent they are) only in a different order. For example These are anagrams of each other pit - tip skin kins blow - bowl alloy loyal hated - death hose shoe These are not anagrams of each other: ump pump house home hotter - tinker levels - vessel Note that your program needs to have at least one function areAnagram that takes two C- strings (the words) and passes back a boolean value of true if the two words are anagrams of each other and false if they are not anagrams Assume that the words typed only have letters (no spaces or punctuation). Let the user type in any number of words (two at a time) until they want to quit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
