#include int main () { int i,j; int a[4][4] = { { 1, 2, 3, 4}, { 5, 6, 7, 8}, { 9,10,11,12}, {13,14,15,16} }; int *la[4] = { a[0], a[1], a[2], a[3] }; int lb0[4] = { -1, -2, -3, -4}; int lb1[4] = { -5, -6, -7, -8}; int lb2[4] = { -9,-10,-11,-12}; int lb3[4] = {-13,-14,-15,-16}; int *b[4] = { lb0, lb1, lb2, lb3 }; int ca[16]; int *c[4] = { ca, ca+4, ca+8, ca+12 }; int **d; printf("Matrix A:\n"); for(i=0; i<4; i++) for(j=0; j<4; j++) printf("a[%1d][%1d]=%2d%c",i,j, a[i][j],j==3?'\n':' '); printf("1. Zeile: "); for(j=0; j<4; j++) printf("a[0][%1d]=%2d%c",j, a[0][j],j==3?'\n':' '); printf("2. Zeile: "); for(j=0; j<4; j++) printf("a[1][%1d]=%2d%c",j, *(a[1]+j),j==3?'\n':' '); printf("3. Zeile: "); for(j=0; j<4; j++) printf("a[2][%1d]=%2d%c",j, *(*(a+2)+j),j==3?'\n':' '); printf("4. Zeile: "); for(j=0; j<4; j++) printf("a[3][%1d]=%2d%c",j, *(la[3]+j),j==3?'\n':' '); d = la; for(i=0; i<4; i++) for(j=0; j<4; j++) c[i][j] = d[i][j]+b[i][j]; printf("Matrix C:\n"); for(i=0; i<16; i++) printf("c[%1d][%1d]=%2d%c",i/4,i%4, *(ca+i),i%4==3?'\n':' '); }