CASE STUDY
1.Determine the output of the following program?
int prod(intm, int n);
main()
{
int x=10,y=20:
int p,q;
p=prod(x,y);
q=prod(p,prod(x,y));
printf ("%d%d",p,q);
}
int prod(int a, int b)
{
return(a*b);
}
2.What will be the output of the following program?
void test(int *a)
main ()
{
int x=50;
test(&x);
printf("%d\n",x);
}
void test (int *a)
{
*a=*a+50;
}