MIPI_BaseC_WebinarFRTK/22_Seminar09/03_pointer_difference_p10.c

12 lines
177 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, *qa;
pa = &a[1];
qa = &a[3];
printf("%p - %p = %lld\n",qa,pa, qa-pa);
return 0;
}