An interview question arise a strong confusion in my mind i.e Lets see this program
#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);
}
Output is
25 0
0 25
But why? And how?
Can you briefly explain to me because I don't understand this program mentioned in UGC book.
Please help me to understand this concept more finely, so that I can better prepare for my interview.
Thanks for your precious time.