Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void func( int (*a)[5] )
- {
- int i,j;
- int total=0;
- for(i = 0; i < 5; i++)
- for(j = 0; j < 5; j++)
- a[i][j] = total++;
- }
- int main()
- {
- int b[5][5];
- int i,j;
- func(b);
- for(i = 0; i < 5; i++)
- for(j = 0; j < 5; j++)
- printf("%d\n", b[i][j]);
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement