how to find anagram without using string functions using
only loops in c programming
Answer / Ashwini Kumar
Here's a simple solution to finding anagrams in C using loops: 1. Sort both strings in lexicographical order using bubble sort or any other sorting algorithm. 2. Compare the sorted strings character by character. If the characters match and there are no remaining unmatched characters, then the two strings are anagrams.
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between linking and loading?
Is array name a pointer?
Why is it that not all header files are declared in every C program?
Explain how can you restore a redirected standard stream?
Which is more efficient, a switch statement or an if else chain?
what is c++ programming?
Which programming language is best for getting job 2020?
What is the best organizational structure?
write a c program to print a given number as odd or even without using loop statements,(no if ,while etc)
Explain the properties of union. What is the size of a union variable
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
write a c program to find the sum of five entered numbers using an array named number