Q. What is the output of this code?
Code:#include <stdio.h>
#define PI 3.14
int main() {
printf("%.2f", PI);
return 0;
}
β
Correct Answer: (A)
3.14
Explanation: #define replaces PI with 3.14 before compilation.