Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program for FUNCTION OF COUNT THE CHARACTERS IN EACH WORD
void count(char c[]);
void main()
{
char a[50];
int i=0;
clrscr();
printf("ENTER THE STRING: ");
do
a[i++]=getchar();
}while(a[i-1]!='\n');
a[i]='\0';
count(a);
getch();
}
void count(char a[])
int i=0,l[25],c=0;
for(i=0;i<25;i++)
l[i]=0;
for(i=0;a[i]!='\0';i++)
if(a[i]!=' ' && a[i]!='\n')
l[c]=l[c]+1;
else
c++;
for(i=0;l[i]!=0;i++)
printf("WORD : %d : %d\n",i+1,l[i]);
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
WORD 1 : 7
WORD 2 : 1
WORD 3 : 6
External Variables Different functions of the similar program can be written in different source files and can be compiled together. The scope of a global variable is not limit
write a program that counts the number of occurrences of the string in the n-th Padovan string P(n)
6#666#665533999 where # is used as space.output is monkey
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
Write a program that takes 3 small letters as input and sort them according to their ASCII value.
C++ improves on many of C's features and provides object-oriented programming capabilities used for software production, quality and reusability. C++ was developed by Bjarne Strons
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send
GetChar - get a character from the keyboard, echo to the display and return it in reg al. - Note: if a linefeed (LF) is received (Enter key), a carriage return (CR) will als
C program to print L diagonal triangle: void main() { int i=0,j=0; int arr[rows][cols]; for (i=0; i
What are some guidelines / "rules of thumb" for overloading operators? A: Here are a few guidelines / rules of thumb .Use common sense. If your overloaded operator makes life si
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd