@above 2 ... nice explanation both of you
On Mon, Jun 21, 2010 at 10:31 AM, manisha nandal <[email protected]
> wrote:
> int main()
> {
> int a=7,b=2;
> char* p=(char*)a;
>
> printf("%p",p); //prints 00 00 00 07
> printf("\n%p",p+2); //prints 00 00 00 09
>
> int s=(int)&p[b]; //converted to &( *(p+b)) i.e p+b same as above
>
> printf("\n%d",s); // 9
> }
>
> hope its clear now
>
>
> --
> 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]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
--
With Regards,
Jalaj Jaiswal
+919026283397
B.TECH IT
IIIT ALLAHABAD
--
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.