Q. What will be the output of following code? #include<iostream> using namespace std; int main() { enum color{blue,orange,green}; enum fruit{apple,guava,orange}; int i=0; for(i=blue;i<=green;i++) printf("%d",i); return 0; } (Solved)

1. 0 1 2

2. 1 2 3

3. syntax error

4. none of these

  • c. syntax error
Subscribe Now

Get All Updates & News