I don't know what is causing this error, I try dividing 2/12 using double but it gives me a completely wrong number.
#include <stdio.h>
#include <stdlib.h>
int main()
{
double a;
a = 2/12;
printf("\n a = %lf \n", a);
return 0;
}
This returns -272632568 and makes no sense. Thanks for your help.