array size is 5. so 5*4(size of int)=20.
On Wed, Aug 3, 2011 at 1:45 AM, Anuj kumar <[email protected]> wrote:
> #include<stdio.h>
> #include<conio.h>
> int main()
> {
> int arr[5];
> printf("%d %d\n",sizeof(arr),sizeof(&arr));
> getch();
> return 0;
> }
>
> o/p 20 4
>
> anybody can tell me how 20 is coming plzz
>
> --
> 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.
>
--
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.