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 how do you declare an array that will hold more than 64kb of data?
What are different storage class specifiers in c?
How are variables declared in c?
What is the acronym for ansi?
What is the use of typedef in c?
When would you use a pointer to a function?
If you know then define #pragma?
What does main () mean in c?
Are enumerations really portable?
What is difference between array and pointer in c?
What does %c do in c?
Between macros and functions,which is better to use and why?
What is the difference between volatile and const volatile?
Describe how arrays can be passed to a user defined function
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.