GuideFoot - Learn Together, Grow Smarter. Logo

In Computers and Technology / College | 2025-07-08

Which keyword is used to define constants in C?
a. const
b. define
c. constant
d. static

Asked by mohamedyussuf7573

Answer (2)

The keyword used to define constants in C is const . Additionally, #define is used for preprocessor constants. Other options like static and constant are incorrect. ;

Answered by GinnyAnswer | 2025-07-08

The keyword used to define constants in C is const . Another method is using the #define preprocessor directive, but it is not a keyword. Thus, the correct answer to the question is a. const .
;

Answered by Anonymous | 2025-07-11