#include <stdio.h>

int main() {
    int data[][3] = {1, 3, 4, 5, 2, 9, 6, 8, 7};   //3열로 지정하여 data[3][3]
    int *p = data[1];                              //p포인터가 data[1]행을 가리킴
    int x, y; 
    x = *p;                                        //data[1][0]값을 x에 저장  
    y = *(p+2);                                    //data[1][2]값을 y에 저장
    printf("x=%d, y=%d\n", x, y);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: