?
=?big5?B?r0W84Q==?=
Hi All C gurus:
Below is a small program to print out the address of array and
address of array variable:
int main() {
char array[8] = "haha";
printf("array:%x\n", array);
printf("&array:%x\n", &array);
}
The result is :
array:bfffde80
&array:bfffde80
In my thoughts, the "array" and "&array" should be different and why
the
printed out values are the same.
Please help to clarify my doubts? Is there anything I missed in C
language
definition?
Below is a small program to print out the address of array and
address of array variable:
int main() {
char array[8] = "haha";
printf("array:%x\n", array);
printf("&array:%x\n", &array);
}
The result is :
array:bfffde80
&array:bfffde80
In my thoughts, the "array" and "&array" should be different and why
the
printed out values are the same.
Please help to clarify my doubts? Is there anything I missed in C
language
definition?