how to find anagram without using string functions using
only loops in c programming



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

Post New Answer

More C Interview Questions

Difference between linking and loading?

1 Answers  


Is array name a pointer?

1 Answers  


Why is it that not all header files are declared in every C program?

1 Answers  


Explain how can you restore a redirected standard stream?

1 Answers  


Which is more efficient, a switch statement or an if else chain?

1 Answers  


what is c++ programming?

3 Answers   TCS,


Which programming language is best for getting job 2020?

1 Answers  


What is the best organizational structure?

1 Answers  


write a c program to print a given number as odd or even without using loop statements,(no if ,while etc)

10 Answers  


Explain the properties of union. What is the size of a union variable

1 Answers  


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1 Answers  


write a c program to find the sum of five entered numbers using an array named number

0 Answers   TATA,


Categories