char highestFrequencyChar(char *s) {int count[256] = {0};char result;int maxCount = 0;
}
int main() {char s[100];
char highestFrequencyChar(char *s) {
for (int i = 0; s[i] != '\0'; i++) {int count[256] = {0};
char result;
int maxCount = 0;
count[s[i]]++;
if (count[s[i]] > maxCount) {
maxCount = count[s[i]];
result = s[i];
}
}
return result;
}
int main() {
printf("Enter a string: ");char s[100];
scanf("%s", s);
char result = highestFrequencyChar(s);
printf("Character with highest frequency: %c\n", result);
return 0;
}