C | Arrays | Question 1

Last Updated :
Discuss
Comments

Predict the output of below program:

C
 #include <stdio.h>

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

2002

2004

2020

invalid Operation with array address

Tags:
Share your thoughts in the comments