#include<stdio.h>
#include<math.h>
//函数的调用方式:自右向左
int main()
{
int f(int a, int b);
int i = 2, p;
p = f(i, ++i); //关键点
printf("%d\n", p);
while (1);
return 0;
}
int f(int a, int b)
{
printf("%d\n", a);
printf("%d\n", b);
int c;
if (a > b)
c = 1;
else if (a == b)
c = 0;
else
c = -1;
return c;
}
结果显示:
时间: 2024-10-16 00:31:25