C Language MCQ - English
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
Answer : D
View More Related Question
1) 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
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) The declaration "unsigned u" indicates:
4) Which of the following is not a valid C variable name?
5) Which of the following cannot be a variable name in C?