What is the output of the following code?
#includestdio.h
void f(int *p,int *q)
{
p = q;
*p = 2;
}
int i=1,j=1;
int main()
{
f(&i, &j);
printf ("%d%d\n",i,j);
return 0;
}

Posted on by