Discussion :: C-MCQs
-
What is the output of this C code?
int main()
{
enum {ORANGE = 12, MANGO, BANANA = 11, APPLE};
printf("APPLE = %d\n", APPLE);
}
Answer : Option B
Explanation :
In enum, the value of constant is defined to the recent assignment from left.
Be The First To Comment