Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <cstdlib>
- #include <ctime>
- void XX ();
- void init(int *);
- int *pArr[3];
- int arr1[4],
- arr2[4],
- arr3[4];
- int nArr[3][4];
- /////////////////////////////////////////////////////
- int main()
- {
- printf("start: \n"); XX(); printf ("-------------\n");
- init(&nArr[0][0]);
- printf(" end: \n"); XX();
- }
- //////////////////////////////////////////////////////////////////
- void init(int *p)
- {
- for(int i = 0; i < 12; i++)
- {
- p[i] = i;
- }
- }
- ///////////////////////////////////////////////////////////////////
- void XX()
- {
- for(int i = 0; i<3; i++)
- {
- for(int u = 0; u<4; u++)
- {
- printf("%2d ", nArr[i][u]);
- } printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement