MIPI_BaseC_WebinarFRTK/09_Lecture09/11_pointer_increase_p42.c

13 lines
181 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
int main()
{
int a[5] = {10,20,30,40,50};
int *pa, n;
pa = a;
n = *(pa+2); // a[2]
//~ n = pa[2];
printf("n = %d\n", n);
return 0;
}