C Language MCQ - English
What is the problem in following variable declaration?
float 3Bedroom-Hall-
Home | Discussion Forum
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
Answer : D
View More Related Question
1) Which of the following is not a valid variable name declaration?
2) 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
3) A constant cannot be used except:
For assigning initial value to a variable
With ++ operator
As a formal argument
On LHS of an assignment operator
View Answer
4) Variable name resolving (number of significant characters for uniqueness of variable) depends on
Compiler and linker implementations
Assemblers and loaders implementations
C language
None
View Answer
5) Which of the following is not a valid variable name declaration?