And yes corrct me if i am wrong in the assertion that the code wont work
On Fri, May 13, 2011 at 7:24 PM, saurabh singh wrote:
> No Amir,it wont.We will not be able to store each and every digit in the
> double though
> Check out ieee floating point standard,that will clarify it.
> But yes in th
No Amir,it wont.We will not be able to store each and every digit in the
double though
Check out ieee floating point standard,that will clarify it.
But yes in the context of above problem the code wont work i think due to
precision problem...
On Fri, May 13, 2011 at 5:12 PM, Aamir Khan wrote:
double n will overflow...
On 5/13/11, bittu wrote:
> @Dave... I think 1 Googol Year is =10^100 not 10^116.5 ?? why u have
> used
>
> so then we have to write the single line program that googol years of
> time ?? & we have processor that can execute the instruction in 10^9
> per second so the t
On Mon, May 9, 2011 at 8:31 PM, Don wrote:
> That would do it if you have a 64-bit type, which most implementations
> have, but the standard does not require.
> I think that I can make it shorter and cleaner.
>
> int main(int argc, char* argv[])
> {
>const int n=49;
>char a[n]={0};
>i
On Mon, May 9, 2011 at 8:31 PM, Don wrote:
> That would do it if you have a 64-bit type, which most implementations
> have, but the standard does not require.
> I think that I can make it shorter and cleaner.
>
> int main(int argc, char* argv[])
> {
>const int n=49;
>char a[n]={0};
>
I t