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
Is there a way to compare two structure variables?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What functions are in conio h?
Explain null pointer.
What is string in c language?
What are the advantage of c language?
Write a Program to find whether the given number or string is palindrome.
Why is c used in embedded systems?
What is the explanation for the dangling pointer in c?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
Write the control statements in C language
Mention four important string handling functions in c languages .
Why is not a pointer null after calling free?
Explain what is the purpose of "extern" keyword in a function declaration?
What are the functions to open and close file in c language?