Home » C Programming » Pointers » Question
  1. What substitution should be made to //-Reference such that p1 points to variable t3 in the following C code?
    #include <stdio.h>
    int main()
    {
    int t1 = 1, t2 = 2, t3 = 3;
    int *p1 = &t1;
    int **p2 = &p1;
    //-Reference
    }
    1. **p2 = &t3;
    2. *p1 = &t3;
    3. *p2 = &t3;
    4. All of above
    5. None of these
Correct Option: C

*p2 = &t3;



Your comments will be displayed only after manual approval.