#include <stdio.h>

int main()
{
char s[] = "ABCD";
char *p;

for(p=s; p<s+4; p++)
{
printf("%s\n",p);
}

while(1)
{

}
}

 

结果:

ABCD

BCD

CD

D