Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int arr[4] = {11, 12, 13, 14};
    int *ptr = arr;
    printf("%p\t%p", ptr, arr);
    }
    1. Different memory address is printed
    2. Compilation Error
    3. Nothing
    4. Same memory address is printed
    5. None of these
Correct Option: D

Same memory address is printed



Your comments will be displayed only after manual approval.