请说出下面一段代码的输出结果
int test1()
{
int i = 10;
return i++;
}
int test2()
{
int i = 10;
return (i++);
}
int test3()
{
int i = 10;
return ++i;
}
int main()
{
printf("%d\n", test1());
printf("%d\n", test2());
printf("%d\n", test3());
}
答案(白色字):
10
10
11
答案结束
答对了的同学请留言~
标签:输出,return,10,int,请说出,++,printf,代码 From: https://blog.51cto.com/maray/6510870