MIPI_BaseC_WebinarFRTK/22_Seminar09/07_arr_printf_p22.c
2024-11-13 09:22:28 +03:00

13 lines
338 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <stdio.h>
int main(int argc, char **argv)
{
int matr[3][2];
//~ int *pm[2]; //массив из 2-ух указателей *int
int (*pm)[2]; //указатель на строку из 2-ух int
pm = matr;
pm[1][1] = 123; //теперь все ок
printf("%d\n",matr[1][1]); // 123
return 0;
}