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

Is there a way to compare two structure variables?

1058


How to find a missed value, if you want to store 100 values in a 99 sized array?

1364


What functions are in conio h?

1151


Explain null pointer.

1041


What is string in c language?

1075


What are the advantage of c language?

1004


Write a Program to find whether the given number or string is palindrome.

1228


Why is c used in embedded systems?

1059


What is the explanation for the dangling pointer in c?

1062


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

1108


Write the control statements in C language

1130


Mention four important string handling functions in c languages .

1052


Why is not a pointer null after calling free?

969


Explain what is the purpose of "extern" keyword in a function declaration?

1029


What are the functions to open and close file in c language?

1131