#include<stdio.h>
int main()
{
int arr[4]={65,66,67,68};
char arr1[4]={65,66,67,68};
char brr[4]={};
int (*p)[4];
p=&arr;
printf("%d\n",*p[0]);
for(int i=0;i<4;i++)
{
arr[i]=arr[i]+32;
printf("+32后arr数组中元素的值%d\n",arr[i]);
}
for(int i=0;i<4;i++)
{
brr[i]=arr[i];
printf("转换后brr数组中的元素的值是%c\n",brr[i]);
}
return 0;
}
|
|