-
What is the output of this program?
#include
using namespace std;
int main()
{
int i;
enum MonthName
{
January,February,March,April,May,June,July,August,September,October,November,December
};
for (i = February; i <= November; i++)
cout << i;
return 0;
}
-
- 12345678910
- 012345678910
- 109876543210
- Compilation Error
- None of these
Correct Option: A
In this program, we are defined the data types as enumerator and printing its value in a order.