C Language MCQ - English
Which of the following is not a valid variable name declaration?
float PI = 3.14;
double PI = 3.14;
int PI = 3.14;
#define PI 3.14
Answer : D
View More Related Question
1) What is the problem in following variable declaration?
float 3Bedroom-Hall-Kitchen?;
The variable name begins with an integer
The special character ‘-‘
The special character ‘?’
All of the mentioned
View Answer
2) All keywords in C are in
3) Which of the following is not a valid variable name declaration?
4) Variable names beginning with underscore is not encouraged. Why?
It is not standardized
To avoid conflicts since assemblers and loaders use such names
To avoid conflicts since library routines use such names
To avoid conflicts with environment variables of an operating system
View Answer
5) Which of following is not a valid name for a C variable?