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;
}

A. syntax error
B. 3 4 5 6 7
C. 1 2 3 4 5
D. none of these
Answer» B. 3 4 5 6 7
1.2k
0
Do you find this helpful?
1

Discussion

No comments yet