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?



write a program to count the no of repaeted words in a line?..

Answer / 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

More C Interview Questions

why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

0 Answers  


Write a program to find factorial of a number using recursive function.

0 Answers   Global Logic, TCS,


What are the 5 elements of structure?

0 Answers  


What is the use of in c?

0 Answers  


Write a c program to build a heap method using Pointer to function and pointer to structure ?

0 Answers   MAHINDRA, Protech, Sivan Tech,


What does %2f mean in c?

0 Answers  


What is the main difference between calloc () and malloc ()?

0 Answers  


what is c language?

2 Answers  


What is this infamous null pointer, anyway?

0 Answers  


If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.

12 Answers   Google,


Can we declare a function inside a function in c?

0 Answers  


how to set Nth bit of a variable?

1 Answers  


Categories