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

Rahul took a part in cycling game where 1/5 ahead of him and 5/6 behind him then total number of participants?

0 Answers   HCL, Infosys,


From 7:00 AM to 11:00 AM it rained 2.25 inches. At 11:00 AM the rain increased to fall at a rate of 1.25 in. every two hours. How many inches of rain landed on the ground by 5:00 PM?

7 Answers   TCS,


A fruit seller had some balls. He sells 40% balls and still has 420 balls. How many balls he had initially?

0 Answers   Wipro,


Under CICS, multitasking achieved by what method? A. virtual paging. B. task switching. C. priority numbering, D. pseudo conversational

1 Answers  


The sum of 5 consecutive integers is 35. how many of the five consecutive integers are prime number

2 Answers   eClerx,






Rich man keeps me in the pocket poor man throws me away kids eat me its tamil word _u_e_l who am i?

4 Answers   Honda, Wipro,


Find the next letter in the series A,C,F,J,0--

0 Answers   DSQ Software,


A person with some money spends 1/3 for cloths, 1/5 of the remaining for food and 1/4 of the remaining for travel. He is left with Rs 100/- How much did he have with him in the begining?

2 Answers   ICICI, Infosys,


In a certain code language DESERT is written RTSEDE. How will the word FAULTS the written in that code language? (a) TSULFA (b) AFLUST (c) LUAFST (d) UAFSTL (e) None of these

4 Answers  


51 x 53 x ... x 59 ; symbols ! - factorial ^ - power of 2

1 Answers  


A person starts walking at a speed of 5km/hr through half the distance, rest of the distance he covers with a speed 4km/hr. Total time of travel is 9 hours. What is the maximum distance he can cover?

0 Answers   Hexaware,


a boat travels upstream 20km in 6 hrs and 18 km downstream in 4hrs find the speed of boat in still water a.1/2kmph b. 7/12kmph c.5kmph d.none of these

3 Answers   IBM, Satyam,


Categories