Friday, January 27, 2006

And we thought Google was wrong :(...

well from my earlier post, and following up a few threads on forums on the internet, i decided to try out something

Here's a small C code

#include

void main()
{
double d;
d=1-0.9-0.1;
printf(" \n d = %g",d);
if(d) printf("\nzero not achieved") ;
}


I ran it on visual studio :) and it did not get the zero. Might want to run the program for yourself and find out...

Thanks to Animesh for pointing it out.

So google gets a clean chit again !

No comments: