Array pointer increment in c/c++

main()
{
int c[]={1.1,2.2,3.3,4.4};
int *p=c;
for(int i=0;i<3;i++)
{
printf(“%d",p);
++p;}
Tutorial answer:1234
Debugging solution:Array c is assign to the pointer p so whenever p is increase there base address also increase.

Related post