1.

What is the output of this program?
#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
E. Compilation Error
Answer» B. 0123456789101112


Discussion

No Comment Found

Related MCQs