Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the output of this C code?
Home
C Plus Plus
What is the output of this C code?
+1
vote
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
What is the output of this C code?
#include <stdio.h>
#define MAX 2
enum bird {SPARROW = MAX + 1, PARROT = SPARROW + MAX};
int main()
{
enum bird b = PARROT;
printf("%d\n", b);
return 0;
}
a. Compilation error
b. Undefined value
c. 5
d. 2
#c-language
#c-programming
#c-compiler
Please
log in
or
register
to answer this question.
0
Answers
Related questions
+1
vote
Q: What is the output of this C code?
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-language
#c-programming
#c-compiler
+1
vote
Q: What is the output of this C code?
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-language
#c-programming
#c-compiler
+1
vote
Q: What is the output of this C code?
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-language
#c-programming
#c-compiler
+1
vote
Q: What is the output of this C code?
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-compiler
#c-language
#c-programming
+1
vote
Q: What is the output of this C code?
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-language
#c-programming
#c-compiler
+1
vote
Q: What is the output of this C code?
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-language
#c-programming
#c-compiler
+1
vote
Q: What is the output of this C code?
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-language
#c-programming
#c-compiler
+1
vote
Q: What is the output of the code given below
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-language
#c-programming
#c-compiler
+1
vote
Q: All keywords in C are in
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-programming
#c-language
#c-compiler
+1
vote
Q: Which of the following is true for variable names in C?
asked
Jun 13, 2019
in
C Plus Plus
by
Derya
#c-language
#c-programming
#c-compiler
...