MIPI_BaseC_WebinarFRTK/09_Lecture09/12_pointer_increase_p45.c

13 lines
188 B
C
Raw Permalink 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=10;
pa = a+2;
n = ++*pa; // ++(*pa)
//n = *(++pa);//n=40
printf("%d\n",n);
return 0;
}