Top

Discussion

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

#include
int main()
{
    int *j;
    void fun(int**);
    fun(&j);
    return 0;
}
void fun(int **k)
{
    int a=10;
    /* Add a statement here */
}

 

  • A.**k=a;
  • B.k=&a;
  • C.*k=&a
  • D.&k=*a

Answer: C

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment