--- In [email protected], Sunil Nair <[EMAIL PROTECTED]>
wrote:
>
> --- Uma Maheswara Rao Lankoti <[EMAIL PROTECTED]> wrote:
>   >unary ++ operator is having higher priority than unary * operator. 
>    
>   s.......provided might be compiler dependent......
>   
> Unary operators appear before their operand and associate from right
to left.
> so *b++ is token(ed) as  *(b++) which refers to some garbage value
pointed out by b++ (i.e in simple, the incremented address (value) of
some data).
> 
> Pedro Izecksohn <[EMAIL PROTECTED]> wrote:
>           --- Uma Maheswara Rao Lankoti <[EMAIL PROTECTED]> wrote:
> 
> > for *ptr++ :
> > unary ++ operator is having higher priority than unary * operator. so
> > *ptr++ is equal to *(ptr++). ie, its pointing to the value next to
> > previously pointing one.

*ptr++
is equivalent to
*ptr;  ptr++;
Left to right binding...possibally compiler dependent, but as per my
understand ANSCI has defined it well enuf. You can refer to K&R for
more details, they have explained it nicely!

njoy
-Saurabh





Reply via email to