I need to print the address of a pointer. This is my code:
float arr[5] = {1.2 , 2.3 , 5 , 7.1 , 9.6};
float *ptrarr;
ptrarr = &arr[0];
printf("Address of ptrarr+2=%p,%p \n\n",ptrarr+2,&arr[2]);
I knew that pointer addresses have 8 bytes, but my output is always 16 bytes. This is the output
Address od ptarr+2=000000000061FDE8,000000000061FDE8
Can someone please explain?