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
Write a program to check whether a number is prime or not using c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What is main () in c?
Explain output of printf("Hello World"-'A'+'B'); ?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Explain Basic concepts of C language?
What does == mean in texting?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Explain spaghetti programming?
How can you increase the allowable number of simultaneously open files?
What is the need of structure in c?
What are different types of variables in c?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Is register a keyword in c?