The keyword used to define a constant in C is:
Correct answer
B. const
8 views
B. const
8 views
const defines a variable whose value cannot be changed after initialisation. #define is a preprocessor directive for macros. Using const improves safety and readability.
Asked in: Matric,FBISE
Not sure why the answer is B? Ask here and get an explanation.