Question
#include<stdio.h>
const enum Alpha{
X,
Y=5,
Z
}p=10;
int main(){
enum Alpha a,b;
a= X;
b= Z;
printf("%d",a+b-p);
return 0;
}
a.
-4
b.
-5
c.
10
d.
11
Posted under Compiler Design
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be output of the following c code?
Similar Questions
Discover Related MCQs
Q. Which of the following is integral data type?
View solution
Q. Is GCC a cross Compiler ?
View solution
Q. Which of the following String can be obtained by the language L = {ai b2i / i >=1}?
View solution
Q. Give a production grammar that specified language L = {ai b2i >= 1}:
View solution
Q. Consider the production of the grammar S->AA A->aa A->bb.Describe the language specified by the production grammar.
View solution
Q. Semantic Analyser is used for
View solution
Q. In Short Syntax Analysis Generates Parse Tree.
View solution
Q. Output file of Lex is _____ the input file is Myfile.
View solution
Q. ( Z,* ) be a structure, and * is defined by n * m =maximum ( n , m ). Which of the following statements is true for ( Z, * ) ?
View solution
Q. The computer language generally translated to pseudo-code is
View solution
Q. A simple two-pass assembler does which of the following in the first pass?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Compiler Design? 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!