Important MCQ

Which keyword creates a constant?

Q.Which keyword creates a constant?

A) fixed
B) constant
C) const
D) final
Correct Answer:
Option C
Detailed Explanation:
C) const 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.