#include #include int main() { int i, len; int start_pos, end_pos; char str1[] = "Computer Science and Engineering, University of Aizu"; char *p, *q; len = strlen( str1 ); printf("Input start and end positions (1 - %d): ", len); scanf("%d%d", &start_pos, &end_pos); /* for(i = ________; ________; i++) { */ for(i = start_pos-1; i <= end_pos-1; i++) { printf("%c", str1[i]); } printf("\n"); /* p = ________; */ p = &str1[0]; /* str1 のみでもよい */ /* for(i = ________; ________; i++) { */ for(i = start_pos-1; i <= end_pos-1; i++) { /* printf("%c", ________(p ________)); */ printf("%c", *(p+i)); } printf("\n"); /* for(________; ________; ________) { */ for(q = p+start_pos-1; q <= p+end_pos-1; q++) { printf("%c", *q); } printf("\n"); return 0; }