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

What are the Advantages of using macro

0 Answers  


What are c header files?

0 Answers  


code for bubble sort?

1 Answers  


int i=0,j; j=++i + ++i ++i; printf(" %d",j);

2 Answers   ME,


what is the significance of static storage class specifier?

0 Answers  


What is the difference function call by value & function call by reference?

6 Answers  


Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console.

3 Answers   HCL,


Explain what is wrong in this statement?

0 Answers  


define string ?

0 Answers  


Why is #define used?

0 Answers  


difference between Low, Middle, High Level languages in c ?

0 Answers   Bosch, Infosys,


What are the different types of constants?

0 Answers  


Categories