Check out example codes for "Write a c program to count the different types of characters in given string.". It will help you in understanding the concepts better.

Code Example 1

	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
   			for(i=0;i<l-1;i++) {
   	       		if(arr[i]==j) {
   	  		if(c>0) {
   	    		printf("No. of Occurence of %c ::%d\n",j,c); 
   	  	printf("No. of type of characters:%d\n",var);   

Learn ReactJs, React Native from