Write the define preprocessor directive and declarations for

Write the #define preprocessor directive and declarations for a program that has a constant macro for PI ( 3.14159) and variables radius , area , and circumf declared as double , variable num_circ as an int , and variable circ_name as a char.

Please give me the code to just copy and paste and done

Solution

The below code defines a const macro for PI, and the variables declaration in a c program.


// Constant macro for PI

#define PI 3.14159

void main() {

double radius;
double area;
double circumf;
int num_circ ;
char circ_name;

}

Write the #define preprocessor directive and declarations for a program that has a constant macro for PI ( 3.14159) and variables radius , area , and circumf de

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site