H
herrcho
#include <stdio.h>
int multi[2][4];
int main()
{
printf("\nmulti = %u",multi);
printf("\nmulti[0] = %u",multi[0]);
printf("\n&multi[0][0] = %u\n",&multi[0][0]);
return 0;
}
the 3 statements above shows the same result.
i can understand the second and the third result in same output.
BUT
the first and the second ..
as far as i know, multi is the pointer to the first element of the
array,
so multi is same as &multi[0]
then, why multi == multi[0]
please teach me the right thing.. TIA ^^
int multi[2][4];
int main()
{
printf("\nmulti = %u",multi);
printf("\nmulti[0] = %u",multi[0]);
printf("\n&multi[0][0] = %u\n",&multi[0][0]);
return 0;
}
the 3 statements above shows the same result.
i can understand the second and the third result in same output.
BUT
the first and the second ..
as far as i know, multi is the pointer to the first element of the
array,
so multi is same as &multi[0]
then, why multi == multi[0]
please teach me the right thing.. TIA ^^