Int A[3]={0,1,2}
A++;
in your given code A is the name of array, and it is also used as address of whole array.
as you increasing A means u r trying to access out of scope memory.
Let us consider A(address of array)=1024
As u increase A it becomes 1024+3*sizeof(int);