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

If we give two names then this displays the connection between the two people. It is nothing but flames game

1 Answers  


Can you think of a way when a program crashed before reaching main? If yes how?

2 Answers  


what are the difference between ANSI C and Let Us c and Turbo C

4 Answers   LG Soft,


to get a line of text and count the number of vowels in it

2 Answers  


What is C language Terminator?

15 Answers   TCS,






is forign key will be unique key any table or not?

2 Answers  


Describe newline escape sequence with a sample program?

0 Answers  


What are the different types of objects used in c?

0 Answers  


Explain how can I manipulate strings of multibyte characters?

0 Answers  


What is double pointer?

0 Answers  


What is 1f in c?

0 Answers  


How to explain the final year project as a fresher please answer with sample project

0 Answers  


Categories