[algogeeks] Re: C aps output

2011-05-22 Thread siva viknesh
thanks for all for clearing my doubt :) On Sat, May 21, 2011 at 12:07 AM, Selvakumar N wrote: > Two byte rep : > 256(0001) + 1(0001) > > iPtr points to least significant byte , iPtr + 1 points to most significant > byte > > P.S : Not verified by code > -Selva > > On Fri, May 20, 2011 at 8

[algogeeks] Re: c aps ..output discrepancy !!!

2011-05-22 Thread siva viknesh
hi anybody reply please!! On May 20, 6:53 pm, siva viknesh wrote: > hi > > #include > main() > { > int a=2,*f1,*f2; > f1=f2=&a; > *f2+=*f2+=a+=2.5; > printf("\n%d %d %d",a,*f1,*f2); > > } > > for this code in code blocks IDE got 8 8 8 as op > >                          inhttp://ideone.com/ok8

[algogeeks] Re: C aps output

2011-05-20 Thread viswanath vellaiappan
Hello, I guess http://betterexplained.com/articles/understanding-big-and-little-endian-byte-order/ will help you to understand better. Basically the output will depend on endianess of the system. I guess your machine were you ran this program is little endiness machine. Let me know if you