[algogeeks] Re: pointer question

2011-08-04 Thread wastrel
floating point numbers are stored in 4 bytes with first 3 bytes storing the mantissa part...1st bit of last byte stores the sign of mantissa... rest of the bits store the magnitude of the exponent relative to +127( exponent + 127 wll be stored). Now ur num will be stored as 5375 in first 3

Re: [algogeeks] Re: pointer question

2011-08-04 Thread Vijay Khandar
Thanks, but can u elaborate some more explanation, that how for loop is working here Vijay On Thu, Aug 4, 2011 at 9:52 PM, wastrel virmanisadi...@gmail.com wrote: floating point numbers are stored in 4 bytes with first 3 bytes storing the mantissa part...1st bit of last byte

Re: [algogeeks] Re: pointer question

2011-08-04 Thread Aditya Virmani
it has 4bytes in memory, pointed by the char pointer...just remember *(s+1) means jump by the size of pointer(here char); so it will print first byte in 1st cycle, so on... On Thu, Aug 4, 2011 at 10:11 PM, Vijay Khandar vijaykhand...@gmail.comwrote: Thanks, but can u elaborate some more