Important MCQ

#define PI 3.14 is written

Q.#define PI 3.14 is written

A) with a data type
B) with a semicolon
C) with an = sign
D) without a semicolon
Correct Answer:
Option D
Detailed Explanation:
D) without a semicolon is correct. A constant has a fixed value. const variables must be initialized when declared and cannot be reassigned; #define is a preprocessor directive and has no trailing semicolon.