in Programming
880 views
1 vote
1 vote
#include <stdio.h>
main()
{
    int arr[5];
    printf("%p,%p\n",arr,&arr);
}

How do both print the same address?
in Programming
880 views

4 Comments

@srestha why couldn't you print sizeof(int) and sizeof(int*)?
1
1
in an array sizeof(int), how possible it?

always there is a pointer dereference

isn't it?
0
0
I understood what u mean by this.

Integer has it's own size and when integer contains a pointer it has different size. That means pointer itself must contain some size
0
0

Please log in or register to answer this question.

Related questions