1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
 
int main(){
    int array[][3= { {1,2,3}, {4,5,6}, {7,8,9}, {10,11,12}};
    int* ptr = array;
    int (*pptr)[3= array;
 
    printf("%d\n"*ptr);
    printf("%d\n"*(ptr + 5));
    printf("%d\n", (*pptr)[2]);
    printf("%d\n"*(pptr[3]));
    printf("%d\n",**(pptr + 1));
    printf("%d\n", array[0]);
    printf("%d\n"*(array[0]+2));
}
cs


+ Recent posts