M

Mr. Dubey • 100.64K Points
Coach

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
Share

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics