1

[SOLVED] sizeof(&array)

view story
linux-howto

http://www.linuxquestions.org – For something like Code: double array[4]; , I am confused as to how the compiler evaluates Code: sizeof(&array) to return a value corresponding to the number of elements in array. How is sizeof operator interpreting "address" of array to return such a value? I realize that identical value can be returned from Code: sizeof(array)/sizeof(array[0]) but I'd like to understand the mechanics. Note that return values of sizeof(array) and sizeof(array[0]) are perfectly clear to me (HowTos)