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

13 lines
214 B
C

#include <stdio.h>
int main()
{
int a[5] = {10,20,30,40,50};
int *pa, n=10;
pa = a+2;
*pa++ = n+3;
printf("%d\n",*pa);
printf("%d %d %d %d %d\n", a[0],a[1],a[2],a[3],a[4]);
return 0;
}