#include <stdio.h>
int main()
{
int a[5] = {1, 2, 3, 4, 5}, *p, *q;
p = &a[0];
q = &a[4];
for (; p <= q; p++)
{
printf("%d ", *p);
/* code */
}
return 0;
}
#include <stdio.h>
int main()
{
int a[5] = {1, 2, 3, 4, 5}, *p, *q;
p = &a[0];
q = &a[4];
for (; p <= q; p++)
{
printf("%d ", *p);
/* code */
}
return 0;
}