C Language MCQ - English
Which is valid C expression?
Home | Discussion ForumWhich is valid C expression?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
Answer : B
View More Related Question
1) Which of the following is not a valid C variable name?
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) Which of the following cannot be a variable name in C?
4) 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
5) Which of the following is not a valid variable name declaration?