hey its compiler dependent ... no meaning in discussing such questions as
standard c considers it as a undefined behaviour

On Wed, Sep 7, 2011 at 1:08 PM, annarao kataru <kataruanna...@gmail.com>wrote:

> hai in gcc compiler of fedora 14
>
> int main()
> {
> int a=4;
> printf("%d  %d  %d  %d",++a,++a,++a,++a);
> return 0;
> }
> o/p  7 7 7 7
>
> but if i replace ++a  with  a++ in above expn  i am getting o/p as  7 6 5 4
>
> why ??  can u  explain ?????
>
> thanks  in advance.......
>
> --
> 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