matrix multiplication fails introspect the causes for its
failure and write down the possible reasons for its
failurein c language.

Answer Posted / prabhat thapa

The main reason is number of columns in first matrix not being equal with number of rows in second matrix.
(A i*j)* B(j*k)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I list all of the predefined identifiers?

553


Why we use void main in c?

566


What are the advantages and disadvantages of c language?

542


explain what are actual arguments?

609


What is an array? What the different types of arrays in c?

629






Explain the difference between malloc() and calloc() function?

575


What is sizeof c?

579


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

613


How can I find the modification date of a file?

673


What is scope and lifetime of a variable in c?

554


Describe newline escape sequence with a sample program?

620


Explain the difference between null pointer and void pointer.

642


Do variables need to be initialized?

599


What are the types of pointers in c?

510


How many levels of pointers have?

569