Hi
i hav a doubt could u pls explain me..............
wt s da sizeof(int*) , sizeof(int**),sizeof(int)
in the following code
int **p;
int *q;
p=(int *)malloc(sizeof(int *))
*p=(int *)malloc(sizeof(int))
**p=12;
q=*p;
Thanks and regards.
Hi
i hav a doubt could u pls explain me..............
wt s da sizeof(int*) , sizeof(int**),sizeof(int)
in the following code
int **p;
int *q;
p=(int *)malloc(sizeof(int *))
*p=(int *)malloc(sizeof(int))
**p=12;
q=*p;
Thanks and regards.
sizeof(int*)
and sizeof(int**)
will be the same and it is the size of pointer. sizeof(int)
is the size of int
.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.