#include <stdio.h>
int main(void)
{
char s[50] = "c c++ c# java python";
int frequency = 0;
char ch = 'c';
for (int i = 0; s[i]; i++)
{
if (ch == s[i])
frequency++;
}
printf("Frequency of the characters '%c' is: %d", ch, frequency);
return 0;
}
/*
run:
Frequency of the characters 'c' is: 3
*/