The memory address of each element of an array are displayed as
int first[4], n=4;
for(int i=0;i<n;i++){
cout<<"first#" <<i<<" "<<&first[i]<<endl;
}
I want to ask how to output the address of each element allocated using malloc?
int *first = (int *) calloc(n, sizeof(int));