S
somenath
Hi All,
Could any body explain me the ouput of the following code segment
File a.c contains
int f1(int x, int y)
{
printf("%d %d", x, y);
return x+y;
}
File b.c contains
extern int f1();
main()
{
printf(" %d\n", f1(10, 20, 3));
}
The output of the above program when a.c and b.c are compiled and
linked together is as mentioned bellow .
OUTPUT
=========
10 20 30
Regards
Somenath
Could any body explain me the ouput of the following code segment
File a.c contains
int f1(int x, int y)
{
printf("%d %d", x, y);
return x+y;
}
File b.c contains
extern int f1();
main()
{
printf(" %d\n", f1(10, 20, 3));
}
The output of the above program when a.c and b.c are compiled and
linked together is as mentioned bellow .
OUTPUT
=========
10 20 30
Regards
Somenath