Matrix multiplication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandhya
    New Member
    • Oct 2006
    • 1

    Matrix multiplication

    Write a program for matrix multiplication using pointers --pls.help
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sandhya
    Write a program for matrix multiplication using pointers --pls.help
    You will have to start it first for people to come with their help.
    Write some code, get somewhere, post that code and the area you need help in. We get better programmers that way.

    Comment

    • pjedson
      New Member
      • Oct 2006
      • 3

      #3
      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

      • jankshtt
        New Member
        • Feb 2007
        • 1

        #4
        hi im new to c programming ...could you pleaseeeee explain the above program .im trying to learn by doing programs ...but this one is confusing.pleas e somebody explain it...
        thank you very much!!

        Comment

        • abhishek2023
          New Member
          • Sep 2007
          • 1

          #5
          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

          • Firecore
            New Member
            • Jul 2007
            • 114

            #6
            could you also use a linked list for this?

            Comment

            • mfui
              New Member
              • Mar 2008
              • 1

              #7
              Can 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.

              Comment

              • JosAH
                Recognized Expert MVP
                • Mar 2007
                • 11453

                #8
                Originally posted by mfui
                Can 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.
                We don't send programs to anyone; we help people to write code themselves by
                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,

                Jos

                Comment

                Working...