I am trying to understand array behavior. Please see the code below. Size of int is 4.
int arr[]={10,9,8,7,6,5};
printf("\nSingle array print=> \n%u || %u || %u || %u",
singlearr, &singlearr, &singlearr + 1);
I am getting the output:
2293248 || 2293248 || 2293272
I understand the expressions "singlarr
" and "&singlearr
" but when I am doing "&singlearr + 1
", why it is giving output as 2293272 which is 24 bytes after the address 2293248 (2293248+24) ?