Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. 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 */ 
     } 
    

     

  2. A.

    **k=a;

    B.

    k=&a;

    C.

    *k=&a

    D.

    &k=*a

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment