warning C4013: 'printf' undefined; assuming extern returning int 哪里错了 求大神
swap1(intx,inty){intt;t=x;x=y;y=t;}voidmain(void){inta=3,b=5;printf("a=%d,b=%d\n",a,b...
swap1(int x,int y)
{
int t;
t=x;x=y;y=t;
}
void main(void)
{
int a=3,b=5;
printf("a=%d,b=%d\n",a,b);
swap1(a,b);
printf("a=%d,b=%d\n",a,b);
} 展开
{
int t;
t=x;x=y;y=t;
}
void main(void)
{
int a=3,b=5;
printf("a=%d,b=%d\n",a,b);
swap1(a,b);
printf("a=%d,b=%d\n",a,b);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询