Star Patterns
C program to find the minimum occurring character in a string using a while loop.
C program to find the minimum occurring character in a string using a while loop.
#include <stdio.h> #define MAX 100 #define MAXC 255 int main() { char text[MAX]; int freq[MAXC]; int i = 0, min; int ascii; printf("\n Enter any string: "); gets(text); for(i=0; i
Output:
Enter any string: I love string programming The minimum occurring character in the given string is 'I' = 1.
Exercise: 1
C program to find the minimum occurring character in a string.