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 to count the words:
void CountWords();
void main()
{
printf("\n\tcount the words and enter string\n\n\n");
CountWords();
}
void CountWords()
char c;
int num=0;
int flag= 0;
while((c=getchar())!='\n')
if((c==' ')||(c==' ')||(c=='.')||(c==';')||(c==',')||(c==';')
||(c==':')||(c=='"')||(c=='?')||(c=='!')||(c=='-'))
flag=0 ;
else if(flag==0)
num++;
flag=1;
printf("\t\n\n\nNumber of words is %d\n",num);
program
Explain Formatted Input Output with File Pointer? Likewise there are equivalents to the functions scanf and printf which write or read data to files. These are called fscanf a
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec
Add a function for saving the text stored in an array to a file. Your program must check whether or not the output file already exists, and if it does, your program must ask the us
Why are all header files not declared in every C program? - Declaring all header files in each program would result in increase in overall file size and load of the program. It
Project Description: I have a code that works different on 64 bit and 32 bit system. Code is relative to some crypt functions, similar, but not equal to: I have to move fr
Normal 0 false false false EN-US X-NONE X-NONE
Op e r a t o r O v e r l o a d i n g : W h e n a n o p e r a t o r i s u s e d f o r d i ff e r e n t op e r a
(a) Write a procedure (count-even n) that counts the number of even digits in the decimal representation of the number n. For example, (count-even 234) should return 2. (b) Writ
What is the role of && operator in a program code? - && is also referred to as AND operator. - When this operator is used, all conditions specified should be TRUE before nex
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: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd