#include<stdio.h> int *f(int *s) { s +=1; s[1] +=6; *s++ +=7; return s; }
#include<stdio.h>int*f(int*s){s+=1;s[1]+=6;*s+++=7;returns;}main(){inta[5]={1,2,3,4,5...
#include<stdio.h>
int *f(int *s)
{
s +=1;
s[1] +=6;
*s++ +=7;
return s;
}
main()
{
int a[5] = {1,2,3,4,5}, *p=a;
p=f(p);
printf("%d,%d,%d,%d\n",
a[0],a[1],a[2],a[3],a[4]);
}
是怎么运行的求解答 展开
int *f(int *s)
{
s +=1;
s[1] +=6;
*s++ +=7;
return s;
}
main()
{
int a[5] = {1,2,3,4,5}, *p=a;
p=f(p);
printf("%d,%d,%d,%d\n",
a[0],a[1],a[2],a[3],a[4]);
}
是怎么运行的求解答 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询