C | Arrays | Question 2

Last Updated :
Discuss
Comments
Predict the output of below program: C
#include <stdio.h>

int main()
{
    int arr[5];
    // Assume base address of arr is 2000 and size of integer is 32 bit
    printf("%u %u", arr + 1, &arr + 1);

    return 0;
} 
2004 2020
2004 2004
2004 Garbage value
The program fails to compile because Address-of operator cannot be used with array name
Tags:
Share your thoughts in the comments