Code:
main()
{
  char *p;
  char buf[10] ={ 1,2,3,4,5,6,9,8};
  p = (buf+1)[5];
  printf("%d" , p);
}
In this though an integer is assigned to a pointer it is not showing any error and in the printf statement it is printing the value inspite of the address.

Last edited by shabbir; 6Jun2007 at 08:41.. Reason: Code block - http://www.go4expert.com/forums/misc.php?do=bbcode#code