>
> > #define SIZE 10
>>> > int main()
>>> > {
>>> > int arr[SIZE];
>>> > printf("size of array is:%d\n",sizeof(arr));
>>> > return 0;
>>> > }
>>>
>>
when we call the function and pass the name of the ARRAY ,then PUSH the base
Address of the ARRAY in the Stack of the Calling
Function not PUSH the entire ARRAY ,SO Desire Out_Put is Only Size of
Pointer Not Size of Entire ARRAY .
OUTPUT IS 4.
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.