#include
int main(void) {
char s[]="ABCD";
char *p;
for (p=s;p<s+4;p++)
printf("%c\n",*p);
return 0;
}
#include "stdafx.h"
int main(int argc, char* argv[])
{
char s[]="ABCD";
char *p;
for (p=s;p<s+4;p++)
printf("%s\n",p);
return 0;
}
這樣才對,,你試試我這樣的結果就是
ABCD
BCD
CD
D