If I compile the following code using gcc array
and &array
evaluate to the same address:
int array[10];
int main() {
printf("0x%x, 0x%x", array, &array);
}
Why is this the case?
If I compile the following code using gcc array
and &array
evaluate to the same address:
int array[10];
int main() {
printf("0x%x, 0x%x", array, &array);
}
Why is this the case?