MIPI_BaseC_WebinarFRTK/22_Seminar09/07_arr_printf_p21.c

18 lines
280 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
int main(int argc, char **argv)
{
{
int matr[3][2];
int *pm;
pm = (int*)matr;
//~ pm[1][1] = 123; //ТАК НЕЛЬЗЯ
*(pm+2*1+1)=123;
printf("%d\n",matr[1][1]);
}
{
}
return 0;
}