#include<stdio.h>标签:字符,right,两端,int,汇聚,char,arr2,arr1,left From: https://blog.51cto.com/u_13606048/6086647
#include<string.h>
int main() {
char arr1[] = "welcome to bit!!!!!";
char arr2[] = "###################";
int left = 0;
int max = strlen(arr1);
int right = max - 1;
while (left<=right+2){
printf("%s\n", arr2);
arr2[left] = arr1[left];
arr2[right] = arr1[right];
right--;
left++;
}
return 0;
}