任何人都可以帮助我解决数组的以下不等式:
#include <stdio.h>
#define PRD(a) printf("%d", (a))
#define NL printf("\n")
int a[] = {0,1,2,3,4};
int main ()
{
int i;
int*p;
for (i=0; i<=4; i++)
PRD(a[i]);
NL;
for (p=&a[0]; p<=&a[4]; p++)
PRD(*p);
NL;
for (p=&a[0]; i=0; p+i<=a+4; i++)
PRD(p[i]);
NL;
for (p=a, i=0; p+i<=a+4; p++, i++)
PRD(*(p+i));
NL;
基本上我不明白这4个循环,请帮我解释一下!