write a program to count the no of repaeted words in a line?
Answer Posted / 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 View All Answers
Explain what is the benefit of using const for declaring constants?
What is the difference between printf and scanf )?
Why dont c comments nest?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Write program to remove duplicate in an array?
What does %2f mean in c?
What is an auto variable in c?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is the use of header files?
What is the use of ?
Explain the difference between exit() and _exit() function?
What are qualifiers in c?
hi, which software companys will take,if d candidate's % is jst 55%?
Write a program to print “hello world” without using semicolon?
Why is #define used?