Write a program for matrix multiplication using pointers --pls.help
Matrix multiplication
Collapse
X
-
Originally posted by sandhyaWrite a program for matrix multiplication using pointers --pls.help
Write some code, get somewhere, post that code and the area you need help in. We get better programmers that way. -
Hello Sandhya,
Here is the code. play with it by trying different inputs.
Learning pointers is very easy if you want to learn :)
I think it is for some interview or other. Try to understand
each bit of it especially the memory allocation part.
Feel free to ask for any clarifications. .
ALL THE BEST.
::Spoonfeeding removed per Posting Guidelines::Comment
-
why dont u intialize the arrays before on watevr size u want like [2][3]and then using for loop initialize each element with the other one............ .........i dont think such a long code would be required..Comment
-
Originally posted by mfuiCan you please send me program in C++ for the multiplication of two matrices. The maximum order of matrices should be 5 rows and 5 columns.
discussing (optimal) algorithms and helping to remove flaws in the programs that
are under discussion. For free (or commercial) code google around. If all else
fails start by reading a book on linear algebra 101.
kind regards,
JosComment
Comment