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 what is the benefit of using const for declaring constants?

1089


What is the difference between printf and scanf )?

1150


Why dont c comments nest?

1110


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1135


Write program to remove duplicate in an array?

1131


What does %2f mean in c?

1284


What is an auto variable in c?

1294


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1067


What is the use of header files?

1156


What is the use of ?

1084


Explain the difference between exit() and _exit() function?

1213


What are qualifiers in c?

1089


hi, which software companys will take,if d candidate's % is jst 55%?

2139


Write a program to print “hello world” without using semicolon?

1183


Why is #define used?

1333