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].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to