C program to count the words, C/C++ Programming

C program to count the words:

void CountWords();

         void main()


            printf("\n\tcount the words and enter string\n\n\n");




        void CountWords()


            char c;

            int num=0;

            int flag= 0;



                                                if((c==' ')||(c=='               ')||(c=='.')||(c==';')||(c==',')||(c==';')



                flag=0 ;       


              else if(flag==0)







              printf("\t\n\n\nNumber of words is %d\n",num);


Posted Date: 9/29/2012 7:12:05 AM | Location : United States

Related Discussions:- C program to count the words, Assignment Help, Ask Question on C program to count the words, Get Answer, Expert's Help, C program to count the words Discussions

Write discussion on C program to count the words
Your posts are moderated
Related Questions
Program is to store marks and name, roll no in a file: class stud   {     int rno;     char name[20];     int m1,m2,m3;     public:                 void acce

Addition of array elements: #define rows 3 #define cols 3 void main() {                 int i=0,j=0,sum=0;                 int arr[rows][cols];

What is the difference between early binding and late binding? What are advantages of early binding? a.) Late binding refers to function calls which aren't resolved until run t

Produce a pseudo code to be used for development compute and display some data on the bounces a ball will make when dropped from a given height. To simplify the problem, you ass

Selecting Array Elements Implement the following C++ code in assembly language, using the block-structured .IF and .WHILE directives. Assume that all variables are 32-bit signed in

submitting solutions in C language should not use functions from / as these files do not exist in gcc

Project Description: Not just like that though. I want a similar program that can scan through poker lobbys (pokerstars, full tilt, ongame and ipoker) and seat me to the left of

Functions Overloading This a capability in which a C++ program can have several functions performing similar tasks on different data types. When an overloaded function is calle

Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed