C Language MCQ - English
Which of the following is not a valid variable name declaration?
Home | Discussion ForumWhich 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) 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
2) In case of ordinary int variables:
The leftmost bit is reserved for sign
The rightmost bit is reserved for sign
No bit is reserved for sign
None of the above
View Answer
3) The declaration "unsigned u" indicates:
4) A declaration "short int" is used for variable
Which have short duration in a program
Which have short names
Which may require less storage than normal integers
All of the above
View Answer
5) Which of the following is true for variable names in C?
They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
View Answer