A

Admin • 833K Points
Coach

Q. What is the output of this program?

Code:
#include
using namespace std;
int main()
{
int k;
enum Month {
January = 1, February ,March, April, May, June, July, August, September, October, November, December
};
for (k = April; k <= September; k++)
cout << k;
return 0;
}
  • (A) 456789
  • (B) 0123456789101112
  • (C) 0123456
  • (D) 89101112
  • Correct Answer - Option(A)
  • Views: 30
  • Filed under category C++
  • Hashtags:

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.

Be the first to start discuss.