so I was studying about arrays and pointer to an array and I found this code. I was wondering why the last one's address is FE14, isn't it suppose to be the address of the first element plus the (size of data type ) which is 4, so I should be FE04 ?
#include <stdio.h>
int main()
{
int arr[5];
printf("%p\n",arr); //----> the output FE00
printf("%p\n",arr+1); //----> the output FE04
printf("%p\n",&arr); //----> the output FE00
printf("%p\n",&arr+1); //----> the output FE14
}
void *prior to printing them using the%pformat specifier. Also,arrand&arr[0]are the same thing.