H
herrcho
#include <stdio.h>
int multi[2][4];
int main()
{
printf("\nmulti = %p",(void *)multi);
printf("\nmulti[0] = %p",(void *)&multi[0]);
printf("\nmulti[0] = %p",(void *)multi[0]);
printf("\n&multi[0][0] = %p\n",(void *)&multi[0][0]);
return 0;
}
as far as i know.. the above code is alright..
what i'd like to ask is why should (void *) put there .
what's the difference if i change 'pointer to array or pointer to
integer' to 'pointer to void' like above ?
TIA
int multi[2][4];
int main()
{
printf("\nmulti = %p",(void *)multi);
printf("\nmulti[0] = %p",(void *)&multi[0]);
printf("\nmulti[0] = %p",(void *)multi[0]);
printf("\n&multi[0][0] = %p\n",(void *)&multi[0][0]);
return 0;
}
as far as i know.. the above code is alright..
what i'd like to ask is why should (void *) put there .
what's the difference if i change 'pointer to array or pointer to
integer' to 'pointer to void' like above ?
TIA