It's a very simple code. I compiled and run this code in code blocks and the output was 11111111111111112.000000. I run this code also in https://www.codechef.com/ide. This time the output was same. But why it doesn't work properly?
How can I solve this problem?
Here's my code.
#include <stdio.h>
int main()
{
double a = 11111111111111111;
printf("%lf\n", a);
return 0;
}