Which of the following is not a valid c variable name declaration?
(a) float PI = 3.14;
(b) double PI = 3.14;
(c) int PI = 3.14;
(d) #define PI 3.14;
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Correct Answer: (d) #define PI 3.14
Explanation: #define is a pre-processor directive. #define is used to define something, for example, we have defined that PI is 3.14. Before going to the compiler, if ‘PI’ comes into the program, then it will be replaced by 3.14.
#define PI 3.14 is a macro preprocessor, it is a textual substitution.