there is a matrix N x N .Its elements consist of either
value =1 or value=0.
If there is a any zero in the row, then the output matrix
should have all zeroes in that row.
If there is a single zero in any column then that column
should have all zeroes n the output matrix.
write the function to perform these operations.

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

A sequence is given. You should find out error & write correct 1 2 5 10 13 26 29 48.

0 Answers   Infosys,


please send indian bank officers scale previous papers to my mail id i.e mounica84@gmail.com

0 Answers  


f(f(x))=81 THEN VALUE OF X=

0 Answers   CTS,


the successive discounts of 15%,20%is equal to ?

4 Answers   UHG,


a cube has colors blue,red ,yellow each on two opposite sides.cube is divided into "32 small cubes and 4 large cubes". how many cubes (on 36 cubes) have blue at least one side. how many cubes have colors on two sides.

0 Answers   IBM, TATA,






Consider a pile of Diamonds on a table.A thief enters and steals 1/2 of th e total quanity and then again 2 extra from the remaining. After some time a second thief enters and steals 1/2 of the remaining+2. Then 3rd thief enters and steals 1/2 of the remaining+2.Then 4th thief enters and steals 1/2 of the remaining+2.When the 5th one enters he finds 1 diamond on the table.Find out the total no. of diamonds originally on the table before the 1st thief entered.

0 Answers   Infosys,


A report has 20 sheets each of 55 lines and each line consists of 65 characters. If this report is to be retyped with each sheet having 65 lines and each line of 75 characters wht will be the reduction percent in the pages ? (a) 22.5 % (b) 35 (c) 25 (d)none

4 Answers   Deshaw,


There are 3 baskets. one of them have apples, one has oranges only and the other has mixture of apples and oranges. The labels on their baskets always lie. (i.e. if the label says oranges, you are sure that it doesn't have oranges only,it could be a mixture) The task is to pick one basket and pick only one fruit from it and then correctly label all the three baskets.

16 Answers   Microsoft,


A and b can do a piece of work in 15 and 10 days. A and b work on it for sometime and then a leaves b completes the job in 5 days. For how long did a work.

0 Answers   Caritor Solutions,


A certain number of bullets were shared by 3 people equally.Each of them fired 4 bullets and the sum of the remaining bullets was equal to the initial share each had got.what was the initial number of bullets?

0 Answers   IBM,


a person went to a shop and asked for change for 1.15paise. but he said that he could not only give change for one rupee. but also for 50p,25p,10p and 5p. what were the coins he had

0 Answers   Infosys,


Numbers of animals is 11 more than the number of birds. If the number of birds were the number of animals and number of animals were the number of birds( ie., interchanging number s of animals and birds.), the total number of legs get reduced by one fifth(1/5). How many no. of birds and animals were there?

0 Answers   Infosys,


Categories