#include <stdio.h> int main(void) { int a[3] = {1,2,3}; int *p = a ; for(int i=0; i<3; i++){ } return 0; }
Standard input is empty
&a[0]:0x7ffdbff0faec &p[0]:0x7ffdbff0faec &a[1]:0x7ffdbff0faf0 &p[1]:0x7ffdbff0faf0 &a[2]:0x7ffdbff0faf4 &p[2]:0x7ffdbff0faf4