Skip to content

Instantly share code, notes, and snippets.

@hankliu5
Last active February 13, 2019 02:24
Show Gist options
  • Save hankliu5/7368eef240c9101c8da307992ca088de to your computer and use it in GitHub Desktop.
Save hankliu5/7368eef240c9101c8da307992ca088de to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void)
{
int a[3];
for (int i = 0; i <= 4096; i++)
{
printf("address of a[%d] = %p, a[0] = %p\n", i, &a[i], &a[0]);
a[i] = i;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment