[algogeeks] Re: Explain the o/p

2011-06-29 Thread Nishant
in 1st printf no. of characters written are 3 and 4 and 3 4 is 0 which is equal to i next 3 printf are easy... now in last printf no. of characters written by 2 printf(s) are 3 and 3 and 3 3 is 3 which is printed by outer printf On Jun 29, 7:40 pm, ashwini singh asingh...@gmail.com

Re: [algogeeks] Re: Explain the o/p

2011-06-16 Thread Kamakshii Aggarwal
I have read this link,still i am not getting.Can anybody help?? On 6/16/11, Kamakshii Aggarwal kamakshi...@gmail.com wrote: I have read this link,still my not getting.Can anybody help?? On 6/15/11, Maksym Melnychok keym...@gmail.com wrote: that's floating point for you.

Re: [algogeeks] Re: Explain the o/p

2011-06-16 Thread Kamakshii Aggarwal
I have read this link,still my not getting.Can anybody help?? On 6/15/11, Maksym Melnychok keym...@gmail.com wrote: that's floating point for you. http://en.wikipedia.org/wiki/Floating_point -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group.

Re: [algogeeks] Re: Explain the o/p

2011-06-16 Thread DIPANKAR DUTTA
This is depending on the precission of floating point number representation (IEEE double pression or single precission ) and how it is handled by the compilers) On Thu, Jun 16, 2011 at 8:50 PM, Kamakshii Aggarwal kamakshi...@gmail.comwrote: I have read this link,still i am not getting.Can

[algogeeks] Re: Explain the o/p

2011-06-15 Thread shashankreddy509
i have checked the code in broland 4.5.. i have changed some code and checked ... int main() { *float a=275.6;* printf(%.10f\n,a);//prints 275.7000122070 WHY??? if(275.7a) printf(Hi); else printf(Hello); return 0; } output is 275.661035 and also look at this one as well.. int main()

[algogeeks] Re: Explain the o/p

2011-06-15 Thread Maksym Melnychok
that's floating point for you. http://en.wikipedia.org/wiki/Floating_point -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/RcduUpABmi8J. To post to this