Question
enum cities{ bethlehem, jericho, nazareth = 1, jerusalem }
assigns the value 1 to
a.
bethlehem
b.
nazareth
c.
bethIehem and nazareth
d.
jericho and nazareth
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. The declaration enum cities{ bethlehem, jericho, nazareth = 1, jerusalem } assigns the value 1 to
Similar Questions
Discover Related MCQs
Q. Integer division in a 'C' program results in:
View solution
Q. In a 'C'expression involving || operator, evaluation
View solution
Q. In C programming language, which of the following operators has the highest precedence?
View solution
Q. If i j,k are integer variable with values 1,2,3 respectively, then what is the value of the expression
!((j + k) > (i + 5))
View solution
Q. The expression a << 6 shifts all bits of a six places to the left. If a Ox6db7, then what is the value of a << 6
View solution
Q. The expression 5 - 2 - 3 * 5 - 2 will evaluate to 18, if - is left associative and
View solution
Q. Choose the correct statements
View solution
Q. In an operation involving || operator, evaluation
View solution
Q. Pick the operators that assosciate from the left
View solution
Q. Pick the operators that assosiate from the right
View solution
Q. The operators . , || , < , = , if arranged in the ascending order of precedence reads
View solution
Q. Pick the operators that assosiate from left to right
View solution
Q. Pick the operators whose meaning is context dependent
View solution
Q. Which of the following comments about the ++ operator are correct ?
View solution
Q. The expression 5 -2 - 3 * 5 - 2 will evaluate to 18, if
View solution
Q. The expression 4 + 6 / 3 * 2 - 2 + 7 % 3 evaluates to
View solution
Q. Choose the correct statements
View solution
Q. The statement
int **a;
View solution
Q. The operation of a staircase switch best explains the
View solution
Q. How many keywords are there in c ?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!