Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdlib.h>
- #include<stdio.h>
- void CreatMat(size_t N, int (**array)[N])
- {
- *array = malloc(N * sizeof(**array));
- }
- void PrintMat(int N,int (*array)[N]){
- int i,j;
- for(i=0;i<0;i++){
- printf("\n");
- for(j=0;j<0;j++){
- printf("%d ", array[i][j]);
- }
- }
- }
- int main(void)
- {
- int (*array)[7];
- CreatMat(7, &array);
- /* some code */
- PrintMat(7,array);
- free(array);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement