Re: Any idea why this program is not generating an output ?



On 8 Apr, 06:53, lector <hannibal.lecto...@xxxxxxxxx> wrote:
#include <stdio.h>
#include <math.h>
#define M_PI 3.14159

Why redefine M_PI? In my math.h, it is given a value
of 3.14159265358979323846. You lose a lot of precision
by redifining it, and don't gain anything. I'm surprised
you don't get a compiler warning.
.



Relevant Pages