I have this piece of code in a funtion which is trying to retrieve the memory address of values that are stored in a 2D array, using pointers..[B].Could I get help or tips on how to do this please :)...I'm new at this programming..
void displayADD(floa t temp[][DAY])
{
int m,d;
float *ptr;
ptr=&temp[0][0];
*ptr=temp[m][d];}
}}
cout<<"The address storing this value is "<<&ptr<<en dl;
}
Vinaka.
void displayADD(floa t temp[][DAY])
{
int m,d;
float *ptr;
ptr=&temp[0][0];
*ptr=temp[m][d];}
}}
cout<<"The address storing this value is "<<&ptr<<en dl;
}
Vinaka.
Comment