Write a c program to count the different types of characters in given string.
#include<stdio.h>
#include<string.h>
void main() {
char arr[]="askjdfbajksdfkasdfhjkasdfh";
char x;
int l=strlen(arr);
int i=0,j;
int c=0,var=0;
for(j=97;j<=122;j++) { //a=97,z=122
//c=j;
for(i=0;i<l-1;i++) {
if(arr[i]==j) {
c++;
}
}
if(c>0) {
var++;
printf("No. of Occurence of %c ::%d\n",j,c);
}
c=0;
}
printf("No. of type of characters:%d\n",var);
}
Also in C:
- arduino ip to string
- macos prevent disk mounting
- es vocal
- c input output
- c detect endianness
- insert image material ui
- program using if statement in c whether numnber is less eqaul to greater than 50
- docker run port mapping
- windows block application au demarrage regegit
- division recursiva
- os.listdir to array
- incompatible types when initializing type ‘float’ using type ‘point {aka struct point}’
- how to add user to role postgresql
- WARNING: QA Issue: rdepends on
- what is console in sublime text
- como declarar uma string em c
- fibonacci in c
- error: ‘istringstream’ is not a member of ‘std’
- where is /dev/kvm
- why do you jerk while falling aslee
- fibonacci sequence single recursive call
- casting in c
- material ui icons
- c printf uint32_t