for(i = 0; i < n; i++) {
for(j = 0; j < n; j++) {
printf("%u ",(*(a+i)+j));
}
cout<<endl;
}
Assuming that 2-d array a is declared, how (*(a+i)+j) gives the address of each element? I am not understanding this concept. Usually *(a+i) should give the value at location (a+i)?