First the values are calculated from right to left and then the result is
printed from left to right. So the last output is 100 in gcc 4.0 compiler.
The ptr pointer is calculated initially and then printed. Try first
calculating from right to left...

On Wed, Jun 22, 2011 at 9:19 PM, udit sharma <sharmaudit...@gmail.com>wrote:

> May be it is compiler dependent..  :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to