I am using Code::Blocks 12.11 on Windows 64-bit platform for C/C++ codes. I recently came across an unexpected result for this program.
#include <stdio.h>
int main()
{
long double number;
number = 1.1234567;
printf("%llf\n",number);
return 0;
}
It should print the output 1.1234567 but it gives -0.000000, I figured out that it always gives wrong values when i use long double. This code works fine on ideone http://ideone.com/Opu8cy , Please tell me if there is a way to fix this.