Computer Science, asked by utharaudayan123, 7 months ago

To find the frequceny of a character ina string​

Answers

Answered by sonibishnoi6
0

Answer:

see steps

Explanation:

/*C program to find the frequencyof characters in a string*/

#include(stdio.h)

include(string.h)

int main()

char str (100):

Answered by riya3116
0
Answer:

Program to find the frequency of characters in a string is discussed here. Given a string, the frequency of occurrence of each character is displayed as output.



Sample Input & Output:



Input: google



Output:

e 1

g 2

l 1

o 2


Algorithm to find the frequency of characters in a string


Input the string from the user.
Traverse the string, character by character and store the count of each of the characters in an array.
Print the array that contains the frequency of all the characters.



Hope it’s helpful



Similar questions