一个面试问题在我脑海中引起了强烈的困惑,即让我们看看这个程序
#include "stdio.h"
int main()
{
static int a=25;
void cdecl conv1();
void pascal conv2();
conv1(a);
conv2(a);
return 0;
}
void cdecl conv1(int a,int b)
{
printf("%d%d", a, b);
}
void pascal conv2(int a,int b)
{
printf("\n%d%d", a, b);
}
输出是
25 0
0 25
但为什么?如何?
你能简单地给我解释一下吗,因为我不明白 UGC 书中提到的这个程序。
请帮助我更好地理解这个概念,以便我更好地准备我的面试。
感谢您宝贵的时间。