0 votes
in C Plus Plus by

Which of the following is not a valid way to define a constant in C Language?

A) #define PI 3.14

B) const float PI = 3.14;

C) const PI = 3.14;

D) enum { PI = 3.14 };

1 Answer

0 votes
by
Answer: C

Explanation: The correct way to define a constant in C Language using the const keyword is to specify the data type, as shown in option B. Option C is missing the data type.
...