Vidyalelo
C++ Programming · Q81

Variables and Data Types in C++

Programming · C++ Programming · question 81

Q81

What will be the output of the following C++ code? #include using namespace std; int main() enum channel star, sony, zee; enum symbol hash, star; int i = 0; for (i = star; i <= zee; i++) printf("%d ", i); return 0;

A.
012
B.
123
C.
compile time error
Answer
D.
runtime error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board