I wrked out in MSVC
   
  main()
{
  int a = 5;
int *b = & a;
printf("the  result *b is %d\n", *b);
printf("the  result b  is %d\n", b);
*b++;
  //Print the values of *b and b.... C what gets incremented...
(*b)++;
  //Print the values of *b and b.... C what gets incremented...
}
   
  Please include approp. header files and syntax......
   
  with regards,
  Sunil Nair


Pedro Izecksohn <[EMAIL PROTECTED]> wrote:
          --- Sunil Nair <[EMAIL PROTECTED]> wrote:

> s.......provided might be compiler dependent......

#include <stdio.h>

int main (int argc, char ** argv) {

int i=12345, *ip=&i;

printf ("%d\n",*ip++);
printf ("%d\n",*ip);

return 0;
}

Which compiler are you using?

> Unary operators ... associate from right to left.
> so *b++ is token(ed) as *(b++)

Could you point it inside ISO/IEC 9899:1999 (E) ?

C++ by Mauro Rezende writes that "Unary operators ... associate from right
to left", but gcc doesn't.

__________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


         

 Send instant messages to your online friends http://uk.messenger.yahoo.com 

Reply via email to