[ create a new paste ] login | about

Link: http://codepad.org/0Dbd7hHS    [ raw code | output | fork ]

C, pasted on Aug 30:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include <math.h>

int main(int argc, const char * argv[])
{

    long double a=2.0;
    long double b=64.0;
    long double result=powl(a,b)+a;
    printf("a=%Lf, b=%Lf result=%Lf\n",a,b,result);
    return 0;
}


Output:
1
a=2.000000, b=64.000000 result=18446744073709551618.000000


Create a new paste based on this one


Comments: