Harsh Chowdhary's Blog
, 01-09-2011 at 02:29 PM (37933 Views)
Here is a C program to find out the number of Vowels, Consonants, Digits, Words and Special Characters in a given String.
/***********Prog. for counting different character**********/
printf("\n\t Enter the string :=>");
if (s[i]==' ')
printf("\n\t No of vowels=%d \n",d);
printf("\n\t No of consonants=%d \n ",p);
printf("\n\t No of digits=%d \n",c);
printf("\n\t no of words=%d \n ",e+1);
printf("\n\t No of specal character=%d \n",l-b-c-e);
I have only provided you the code. Ask me for the Explanation. I am always ready to explain it.
The above code is copyrighted.Please do not copy and reproduce the code.
Disclaimer: Users of techforum4u.com are responsible for ensuring that any material they post (article, blog posts, images or other mulitimedia content) does not violate or infringe upon the copyright, patent, trademark, or any personal or proprietary rights of any third party, and is posted with the permission of the owner of such rights.Anyone who violates these rules may have their access privileges removed without warning.