#include <stdio.h>
#include<string.h>

int main() {
    char c='o';
    int count=0;
    char str[]="Shobhit";
    for(int i=0;i< strlen(str);i++)
    {
        if (str[i]==c){
            count++;
        }
    }
    printf("%d",count);
    
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: