Two sentences are given and we were required to print the
common word in the two sentences. Words were delimited by
space, full stop, ? , ! and , . The trick in the question
was that common word should be printed only once so if ur
first sentence contains two word "how" and second contains
"how" then in output how should be printed only once for
this u can replace each matched word in second sentence by
spaces .

i want a solution in C/C++ language


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

Post New Answer

More General Aptitude Interview Questions

(165)2-(164)2=

1 Answers   Accenture,


Number Series 18,20,22,20,28,20,?

16 Answers   IBM, KD, TCS,


A persons age is similar to the year he was born(last two digits is counted as age).

0 Answers   Cisco,


In term of percentage 26 is how much more than 20?

6 Answers   RRB,


A,H,A,L,?,H,E

10 Answers   CTS, ICICI,






While packing some return gifts, a mother decides to put some toffees in each gift packet. If she keeps 5 toffees in each packet, she is left with none. But if she keeps 2, 3 or 4 toffees in a packet, she is left with 1 toffee . What is the minimum number of toffees that she needs?

3 Answers   Infosys,


A car is journied a certain distance in 7 hrs in forward journey in the return journey increased speed 12km/hr takes the times 5 hrs. what is the distance

2 Answers   IIT Delhi, MBT,


In a party man & his wife ,and there r 2 son with their wives, and every son has 4 children in his family .how manyperson r in party.

0 Answers   Accenture,


1,4,13,31,112,?

9 Answers   Cambridge, Subex,


pls send me current topics for GD for competitve exams my email id is tejalpg@yahoo.com

0 Answers  


Susan wants to put up fencing around three sides of her rectangular yard and leave a side of 20 feet unfenced. If the yard has an area of 680 square feet, how many feet of fencing does she need?

5 Answers   Accenture,


CALIBRATION PROCEDURE FOR HPLC

0 Answers   Sail,


Categories