70,012
社区成员




#include <stdio.h>
#include <string.h>
#define MAXSTRING 100
int main(void) {
char c = 'a', *p, s[MAXSTRING];
p = &c;
printf("%c%c%c\t", *p, *p+1, *p+2);
//strcpy(s, "ABC");
*s[MAXSTRING] = "ABC";
printf("%s\t%c%c%s\n", s, *s+6, *s+7, s+1);
strcpy(s, "she sells sea shells by the seashore");
p = s + 14;
for (; *p != '\0'; ++p) {
if (*p == 'e') {
*p = 'E';
}
if (*p == ' ') {
*p = '\n';
}
}
printf("%s\n", s);
return 0;
}