1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help me in multiplication of arrays using 2d arrays

Discussion in 'Meet and Greet' started by srikanth1555, Jul 5, 2011.

  1. srikanth1555

    srikanth1555 New Member

    Joined:
    Jul 5, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    hyderabad.
    hello Guys i m a beginner in c programming...
    i need ur help in multiplying two matrices of order ixj and jxk using 2d arrays concept....
     
  2. gpk kishore

    gpk kishore New Member

    Joined:
    Jun 30, 2011
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    0
    it is not possible to write entire program but i can say logic
    1)read two mxn matrices with r1,r2,c1c,2[let matrices be a,b]
    2)if(r2==c1) /*r2=rows of second matrix
    c1=columns of first matrix
    r1=rows of first matrix
    c2=columns of second matrix */
    then c[j]+=a[k]*b[k][j]
    you have to write three loops before this with i,j,k
    after two loops initialize c[j]=0
    you will get it
     

Share This Page