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

Write a program to check whether a number is prime or not using c?

1058


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1282


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1096


What is main () in c?

1075


Explain output of printf("Hello World"-'A'+'B'); ?

1500


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3095


Explain Basic concepts of C language?

1161


What does == mean in texting?

1306


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

1102


Explain spaghetti programming?

1258


How can you increase the allowable number of simultaneously open files?

1162


What is the need of structure in c?

1126


What are different types of variables in c?

1075


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2747


Is register a keyword in c?

1046