C program to count Number Of Occurrences Of Vowels, Consonants, Words, Spaces And Special Characters In The Given Statement

#include #include #include #include #include void main() { char s[100]; int vow=0,cons=0,spc=0,punc=0,l,i; clrscr(); printf(“enter the statementn”); gets(s); l=strlen(s); for(i=0;i

Continue ReadingC program to count Number Of Occurrences Of Vowels, Consonants, Words, Spaces And Special Characters In The Given Statement

C program to find whether a string is palindrome or not

#include #include void main() { char s1[20],s2[20]; clrscr(); printf(“enter a string: ”); scanf(“%s”,s1); strcpy(s2,s1); strrev(s2); if(strcmp(s1,s2)==0) printf(“string is a palindrome”); else printf(“not a palindrome string”); getch(); } Output: enter a…

Continue ReadingC program to find whether a string is palindrome or not