samedi 28 février 2015

C 2d array fundamental query



Why both these print giving same memory address location?

What is the difference between (arr+1) and *(arr+1)?



int main(void){
char arr[][2] = {{0,1},{2,3}};
printf("%u\n",(arr+1));
printf("%u\n",*(arr+1));
return 0;
}



Aucun commentaire:

Enregistrer un commentaire