c - What will be the value in the below cases? -
if define array arr[] , define pointer it:
int *p=arr; if value of arr (in terms of address) 0x1234. value of p? same?
yes. value same. check this, try
printf("arr=%p p=%p\n", arr, p); if define array arr[] , define pointer it:
int *p=arr; if value of arr (in terms of address) 0x1234. value of p? same?
yes. value same. check this, try
printf("arr=%p p=%p\n", arr, p);
Comments
Post a Comment