编程实现:将数组a[6]={'a','b','c','d','e','f',}变成a[6]={'f','a','b','c','d','e',}
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/09 09:03:25
编程实现:将数组a[6]={''a'',''b'',''c'',''d'',''e'',''f'',}变成a[6]={''f'',''a'',''b'',''c'',''d'',''e'',}编程实现:将数组a[6]={''a'',''b'',''c'',''d
编程实现:将数组a[6]={'a','b','c','d','e','f',}变成a[6]={'f','a','b','c','d','e',}
编程实现:将数组a[6]={'a','b','c','d','e','f',}变成a[6]={'f','a','b','c','d','e',}
编程实现:将数组a[6]={'a','b','c','d','e','f',}变成a[6]={'f','a','b','c','d','e',}
main()
{
char a[6]={'a','b','c','d','e','f'};
int i;
char temp;
/*显示a[]的内容*/
for(i=0;i0;i--)
{
a[i]=a[i-1];
}
a[0]=temp;
/*再次显示*/
for(i=0;i