Q. What is the output of following code? #include<iostream> using namespace std; int main() { int I; enum test{a=1,b,c,d,e,f,g,h}; for(i=c;i<=g;i++) cout<<" "<<I; return 0; } (Solved)
1. syntax error
2. 3 4 5 6 7
3. 1 2 3 4 5
4. none of these
- b. 3 4 5 6 7