Advertisement
avukas

9.3

Jul 19th, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. void Ispisi(int* matrica[3][3])
  6. {
  7.     int i,j;
  8.  
  9.     printf("Matrica ispisana:\n");
  10.  
  11.     for (i=0; i<3; i++)
  12.     {
  13.         for (j=0; j<3; j++)
  14.         {
  15.             printf("%d ", matrica[i][j]);
  16.         }
  17. printf("\n");
  18.     }
  19. }
  20.  
  21.  
  22. int main()
  23. {
  24.     int *matrica[3][3] = {1,2,3,4};
  25.     int i,j;
  26.  
  27.     Ispisi(&matrica);
  28.  
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement