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) 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
2) Which of the following cannot be a variable name in C?
3) Which of the following is not a valid C variable name?
4) All keywords in C are in
5) 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