Question
#include <stdio.h>
enum colors {comp,sci,edu};
int main()
{
printf("%d %d %d",edu,comp,sci);
return 0;
}
a.
3 1 2
b.
0 1 2
c.
2 0 1
d.
1 0 2
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. What is the output of this program?
Similar Questions
Discover Related MCQs
Q. What is a preprocessor directive
View solution
Q. Which of the following are correctly formed #define statements?
View solution
Q. A macro must always be written in capital letters.
View solution
Q. A macro should always be accommodated in a single line.
View solution
Q. After preprocessing when the program is sent for compilation the macros are removed from the expanded source code.
View solution
Q. Macros with arguments are not allowed.
View solution
Q. Nested macros are allowed.
View solution
Q. In a macro call the control is passed to the macro.
View solution
Q. All macro substitutions in a program are done
View solution
Q. Identify the trigraph sequence for '\'.
View solution
Q. Identify the trigraph sequence for '^'.
View solution
Q. Undefined function calls in a C program.
View solution
Q. Identify the macro(s) defined in stdarg.h.
View solution
Q. va_list is
View solution
Q. Identify the stringizing operator.
View solution
Q. The EOF character can be included in a file as part of its data.
View solution
Q. The NULL character indicates an end of a string and a file.
View solution
Q. The command line arguments are handled using?
View solution
Q. argc refers to the?
View solution
Q. argv[] is a?
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!