Advertisement
fedexist

Untitled

Feb 3rd, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. double* addizione(double *matrice1, double *matrice2, int riga1, int colonna1, int riga2, int colonna2)
  2. {
  3.     unsigned int i=0;
  4.     unsigned int j=0;
  5.    
  6.     for(i;i<riga1; i++)
  7.     {
  8.         for(j; j<colonna1; j++)
  9.         {
  10.             matrice1[i][j]+=matrice2[i][j]; // *(matrice1+i)+j += *(matrice2+i)+j
  11.         }
  12.     }
  13.     return matrice1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement