write a program to count the no of repaeted words in a line?



write a program to count the no of repaeted words in a line?..

Answer / k raja sekhar

create a linked list of stucture having 2 feilds
1. string "to keep the string"
2. int "to maintain count"

get a word from the line, check in a array say words[]. if it is available just increase the count of the word in the linked list if not create a new node and insert the word in the array.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

what are two kinds of java

2 Answers  


What's wrong with "char *p = malloc(10);" ?

4 Answers  


What's the total generic pointer type?

0 Answers  


write a program to print infinte number

4 Answers  


What is static and auto variables in c?

0 Answers  






how 2 compile & execute c program with out using editor?

2 Answers   HP,


What is the collection of communication lines and routers called?

0 Answers  


Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.

2 Answers  


what is the difference between 123 and 0123 in c?

0 Answers  


Program to trim a given character from a string.

5 Answers   NetApp,


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

0 Answers  


What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;

12 Answers   TCS,


Categories