What is symbolic constant in C?
Symbolic constant
On this page
Symbolic constant
#include <stdio.h>
#define PI 3.14
#define MAX_VALUE 100
int main() {
float radius = 6.0;
float area = PI * radius * radius;
printf("The area of the circle is: %f", area);
printf("\n");
int number = 75;
if (number < MAX_VALUE) {
printf("The number is less than the maximum value");
}
return 0;
}
Output
The area of the circle is: 113.040001
The number is less than the maximum value