Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int n[5] = {10, 20, 30, 40, 50};
    int *p1 = n;
    int **p2 = &p1;
    printf("%p %p", *p1, n);
    }
    1. Same memory address is printed
    2. 10, 20
    3. 40, 50
    4. Different memory address is printed
    5. None of these
Correct Option: D

Different memory address is printed



Your comments will be displayed only after manual approval.