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 find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string!).
Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing.
Typical output should be:
The word is "the".
The sentence is "the cat sat on the mat".
The word occurs 2 times.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Process by which one bit pattern in to another by bit wise operation is?

0 Answers   InterGraph,


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

0 Answers  


What is the purpose of sprintf() function?

0 Answers  


Why main function is special give two reasons?

0 Answers  


Can a file other than a .h file be included with #include?

0 Answers   Aspire, Infogain,


sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?

4 Answers   Subex,


how many argument we can pas in in a function

25 Answers   CTS,


Explain what is the concatenation operator?

0 Answers  


What is a header file?

0 Answers  


Are c and c++ the same?

0 Answers  


difference between malloc and calloc

3 Answers   HCL, Wipro,


What is the maximum no. of arguments that can be given in a command line in C.?

0 Answers   HCL,


Categories