MIPI_BaseC_WebinarFRTK/22_Seminar09/07_arr_printf_p23.c

20 lines
274 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
int main(int argc, char **argv)
{
int m[3][3] =
{
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
int *p1;
int (*p2)[3];
p1 = m[1];
p2 = m + 1;
p1++;
p2++;
printf ("%d %d\n", *p1, **p2);
return 0;
}