let me keep it simple
y is integer pointer pointing to address 20 .. x=20
y+7 will point to the addressy + ( size(int) * 7) i.e 50 here
/*y is integer pointer*/
On Tue, Nov 6, 2012 at 11:45 AM, Rahul Kumar Patle <
patlerahulku...@gmail.com> wrote:
> because difference is of 30 byt
@rahul thnx !!!
On , rahul patil wrote:
its because it is integer pointer subtraction, So subtraction result will
be divided by integer size.
so 30/4 = 7.
2012/11/6 rajesh pandey rajesh.pandey.i...@gmail.com>
int *x ,int *y;
x=(int *) 50;
y=(int *)20;
cout
why the output is 7.
its because it is integer pointer subtraction, So subtraction result will
be divided by integer size.
so 30/4 = 7.
2012/11/6 rajesh pandey
> *int *x ,int *y;
> x=(int *) 50;
> y=(int *)20;
> cout<
> why the output is 7.*
>
> --
> You received this message because you are subscribed to the Goo