I've got this code but I'm not sure if its printing out the right code and I'm just curious what it should print out?
#include <stdio.h>
int main(void)
{
int ref[]={8,4,0,2];
int *p;
int index;
for (index=0, p=ref; index<4; index++, p++)
printf("%d %d\n", ref[index], *p);
return 0;