I am trying to use #define in program
found page Preprocessor Directives - C Programming
other.h
main.cCode:#define PI 3.1415
'PI' undeclared (first use in this function)Code:#include<stdio.h>
#include "other.h"
int main()
{
printf("%f",PI);
return 0;
}
printf("%f",PI);
^~
How to use #define directive ?