F
Fan Zhang
Hi group,
This is a follow-up of the question I posted this afternoon.
I tried to define two constants, PI and radian in that program in the
following way,
#define PI 3.1415926
#define radian 180./PI
I wonder whether they are the same as
static double PI=3.1415926;
static double radian=180./PI;
If they are not, why?
Thanks!
Regards,
Fan
This is a follow-up of the question I posted this afternoon.
I tried to define two constants, PI and radian in that program in the
following way,
#define PI 3.1415926
#define radian 180./PI
I wonder whether they are the same as
static double PI=3.1415926;
static double radian=180./PI;
If they are not, why?
Thanks!
Regards,
Fan