Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    int main()
    {
    int array[5] = {11, 12, 13, 14, 15};
    int *ptr = array + 7;
    printf("%d\n", ptr[-3]);
    }
    1. 11
    2. 12
    3. 13
    4. 14
    5. 15
Correct Option: E

15



Your comments will be displayed only after manual approval.