Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. What will be the output of the program ?

    
    #include
     power(int**);
     int main()
     {
         int a=5, *aa; /* Address of 'a' is 1000 */   
         aa = &a;    
         a = power(&aa);   
         printf("%d\n", a);   
         return 0; 
     }
    power(int **ptr)
     {  
         int b;  
         b = **ptr***ptr;   
         return (b); 
     } 
    

  2. A.

    5

    B.

    25

    C.

    125

    D.

    Garbage value

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment