Sail E0 Webinar
Question


In the following program add a statement in the function fun() such that address
of a gets stored in j?


#include<stdio.h>
int main()
{
int *j;
void fun(int**);
fun(&j);
return 0;
}
void fun(int **k)
{
int a=10;
/* Add a statement here */
}
Options:
A .  **k=a;
B .  k=&a;
C .  *k=&a
D .  &k=*a
Answer: Option C

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers