#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<windows.h>
int main()
{
char arr1[] = "I LOVE YOU";
char arr2[] = "**********";
int left = 0;
//int right = sizeof(arr1) / sizeof(arr1[0]) - 2;
int right = strlen(arr1) - 1;
while (left <= right)
{
arr2[left] = arr1[left];
arr2[right] = arr1[right];
printf("%s\n", arr2);
Sleep(1000);
left++;
right--;
}
return 0;
}
标签:字符,right,两端,int,汇聚,char,arr1,include,left
From: https://blog.51cto.com/u_16329505/8173945