Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain how do you declare an array that will hold more than 64kb of data?

1452


What are different storage class specifiers in c?

1091


How are variables declared in c?

1102


What is the acronym for ansi?

1048


What is the use of typedef in c?

1031


When would you use a pointer to a function?

1047


If you know then define #pragma?

1104


What does main () mean in c?

1095


Are enumerations really portable?

1025


What is difference between array and pointer in c?

1085


What does %c do in c?

991


Between macros and functions,which is better to use and why?

2222


What is the difference between volatile and const volatile?

986


Describe how arrays can be passed to a user defined function

1294


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.

2642