adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main()
    {
        int i;
        enum month 
        {
            JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,DEC
        };
        for (i = JAN; i <= DEC; i++)
            cout << i;
        return 0;
    }

a.

012345678910

b.

0123456789

c.

01234567891011

d.

none of the mentioned

Answer: (a).012345678910

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?